diff --git a/deps/ox/src/ox/std/bit.hpp b/deps/ox/src/ox/std/bit.hpp index d7d5b1c5..fd6b61b6 100644 --- a/deps/ox/src/ox/std/bit.hpp +++ b/deps/ox/src/ox/std/bit.hpp @@ -14,6 +14,13 @@ namespace ox { +template +constexpr typename enable_if::type cbit_cast(From src) noexcept { + To dst; + ox_memcpy(&dst, &src, sizeof(src)); + return dst; +} + template typename enable_if::type bit_cast(From src) noexcept { To dst;