From 1dd516d1ede3df33fdc5c1ae3f0dee895b8c8415 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 7 Feb 2022 12:14:06 +1000 Subject: [PATCH] cast: bit_cast should be constexpr --- cast.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cast.hpp b/cast.hpp index 3ecd03ae..07177a0f 100644 --- a/cast.hpp +++ b/cast.hpp @@ -223,7 +223,7 @@ namespace cruft::cast { /// CXX#20: Convert instances of me to std::bit_cast when it becomes /// available in supported compilers. template - DstT + constexpr DstT bit (SrcT &&src) { static_assert (sizeof (DstT) == sizeof (SrcT));