banan-os/BAN/include/BAN/Bitcast.h

13 lines
158 B
C++

#pragma once
namespace BAN
{
template<typename To, typename From>
constexpr To bit_cast(const From& from)
{
return __builtin_bit_cast(To, from);
}
}