1 #ifndef FWCore_Utilities_bit_cast_h
2 #define FWCore_Utilities_bit_cast_h
28 template <
class To,
class From>
30 static_assert(
sizeof(To) ==
sizeof(From),
"incompatible types");
32 std::memcpy(&dst, &
src,
sizeof(To));
To bit_cast(const From &src) noexcept