diff options
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);
|