BAN: Implement bit_cast
This commit is contained in:
parent
3fc1edede0
commit
78ef7e804f
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
namespace BAN
|
||||
{
|
||||
|
||||
template<typename To, typename From>
|
||||
constexpr To bit_cast(const From& from)
|
||||
{
|
||||
return __builtin_bit_cast(To, from);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue