diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-27 19:19:40 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-28 12:53:01 +0100 |
commit | 5642cba31b5f7610eddf552b1acd984cf718340d (patch) | |
tree | 40dcec36191f4ed8040c6b6f7525cee978b18fa1 /asl/utility.hpp | |
parent | 006a09335306da53f32b4662ebc77866427b6841 (diff) |
Rework some metaprogramming stuff
Diffstat (limited to 'asl/utility.hpp')
-rw-r--r-- | asl/utility.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asl/utility.hpp b/asl/utility.hpp index 451a1e3..2877447 100644 --- a/asl/utility.hpp +++ b/asl/utility.hpp @@ -19,7 +19,7 @@ T exchange(T& obj, U&& new_value) return old_value;
}
-template<trivially_copyable U, trivially_copyable T>
+template<trivially_copy_constructible U, trivially_copy_constructible T>
constexpr U bit_cast(T value) requires (size_of<T> == size_of<U>)
{
return __builtin_bit_cast(U, value);
|