26#if __cpp_lib_bit_cast >= 201806L
28template <
class To,
class From>
29constexpr To bitCast (
const From& from)
noexcept {
return std::bit_cast<To> (from); }
31#elif VCTR_CLANG && __has_builtin (__builtin_bit_cast)
33template <
class To,
class From>
34constexpr To bitCast (
const From& from)
noexcept {
return __builtin_bit_cast (To, from); }
38#error "Your compiler has no bit_cast support"
The main namespace of the VCTR project.
Definition: Array.h:24