From da20300f8cc6ecf8d643565f78ee6823be19adeb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 31 Jan 2020 23:53:55 -0600 Subject: [PATCH] [ox/std] Remove constexpr from ox::bit_cast (synced from dd008c3a08e34e2f8b9a5ec23fd2560042939da0) --- src/ox/std/bit.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ox/std/bit.hpp b/src/ox/std/bit.hpp index 61da610db..cfde87969 100644 --- a/src/ox/std/bit.hpp +++ b/src/ox/std/bit.hpp @@ -15,8 +15,8 @@ namespace ox { template -constexpr typename enable_if::type bit_cast(From src) noexcept { - To dst; +typename enable_if::type bit_cast(From src) noexcept { + To dst = {}; memcpy(&dst, &src, sizeof(src)); return dst; }