diff --git a/tests/socket_ref.cpp b/tests/socket_ref.cpp index 8a10344..dc2461a 100644 --- a/tests/socket_ref.cpp +++ b/tests/socket_ref.cpp @@ -7,7 +7,7 @@ static_assert(std::is_nothrow_swappable_v); #endif static_assert(sizeof(zmq::socket_ref) == sizeof(void *), "size mismatch"); static_assert(alignof(zmq::socket_ref) == alignof(void *), "alignment mismatch"); -static_assert(std::is_trivially_copyable::value, +static_assert(ZMQ_IS_TRIVIALLY_COPYABLE(zmq::socket_ref), "needs to be trivially copyable"); TEST_CASE("socket_ref default init", "[socket_ref]")