diff --git a/Utilities/types.h b/Utilities/types.h index 63cbb96610..f7fd99aac8 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -94,7 +94,7 @@ namespace std { static_assert(sizeof(To) == sizeof(From), "std::bit_cast<>: incompatible type size"); - if constexpr ((std::is_same_v, std::remove_const_t> && std::is_constructible_v) || (std::is_integral_v && std::is_integral_v)) + if constexpr ((std::is_same_v, std::remove_const_t> && std::is_constructible_v) || (std::is_integral_v && std::is_integral_v)) { return static_cast(from); }