Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/xsimd/types/xsimd_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ namespace xsimd
inline To bit_cast(From val) noexcept
{
static_assert(sizeof(From) == sizeof(To), "casting between compatible layout");
static_assert(std::is_trivially_copyable<From>::value, "input type is trivially copyable");
static_assert(std::is_trivially_copyable<To>::value, "output type is trivially copyable");
static_assert(std::is_trivially_copyable_v<From>, "input type is trivially copyable");
static_assert(std::is_trivially_copyable_v<To>, "output type is trivially copyable");
To res;
std::memcpy(&res, &val, sizeof(val));
return res;
Expand Down
Loading