Test for trivial move operations

This commit is contained in:
Chris Thrasher 2025-01-31 14:43:01 -07:00
parent aee8707b1b
commit 955b1ca541
22 changed files with 64 additions and 64 deletions

View File

@ -65,8 +65,8 @@ TEST_CASE("[Audio] sf::SoundFileFactory")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::SoundFileFactory>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::SoundFileFactory>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::SoundFileFactory>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::SoundFileFactory>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::SoundFileFactory>);
} }
SECTION("isReaderRegistered()") SECTION("isReaderRegistered()")

View File

@ -11,8 +11,8 @@ TEST_CASE("[Graphics] sf::BlendMode")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::BlendMode>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::BlendMode>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::BlendMode>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::BlendMode>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::BlendMode>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::BlendMode>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::BlendMode>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::BlendMode>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -12,8 +12,8 @@ TEST_CASE("[Graphics] sf::Color")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Color>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Color>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Color>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Color>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Color>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Color>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Color>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Color>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Color>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Color>);
} }

View File

@ -10,7 +10,7 @@ TEST_CASE("[Graphics] sf::CoordinateType")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::CoordinateType>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::CoordinateType>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::CoordinateType>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::CoordinateType>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::CoordinateType>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::CoordinateType>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::CoordinateType>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::CoordinateType>);
} }
} }

View File

@ -18,8 +18,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec2>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec2>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Vec2>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec2>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Vec2>);
} }
constexpr sf::Glsl::Vec2 vec; constexpr sf::Glsl::Vec2 vec;
@ -33,8 +33,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec2>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec2>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Ivec2>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec2>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Ivec2>);
} }
constexpr sf::Glsl::Ivec2 vec; constexpr sf::Glsl::Ivec2 vec;
@ -48,8 +48,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec2>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec2>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Bvec2>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec2>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Bvec2>);
} }
constexpr sf::Glsl::Bvec2 vec; constexpr sf::Glsl::Bvec2 vec;
@ -63,8 +63,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec3>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Vec3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec3>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Vec3>);
} }
constexpr sf::Glsl::Vec3 vec; constexpr sf::Glsl::Vec3 vec;
@ -79,8 +79,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec3>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Ivec3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec3>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Ivec3>);
} }
constexpr sf::Glsl::Ivec3 vec; constexpr sf::Glsl::Ivec3 vec;
@ -95,8 +95,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec3>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Bvec3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec3>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Bvec3>);
} }
constexpr sf::Glsl::Bvec3 vec; constexpr sf::Glsl::Bvec3 vec;
@ -111,8 +111,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Vec4>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Vec4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Vec4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Vec4>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Vec4>);
} }
SECTION("Default constructor") SECTION("Default constructor")
@ -161,8 +161,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Ivec4>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Ivec4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Ivec4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Ivec4>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Ivec4>);
} }
SECTION("Default constructor") SECTION("Default constructor")
@ -211,8 +211,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Bvec4>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Bvec4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Bvec4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Bvec4>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Bvec4>);
} }
SECTION("Default constructor") SECTION("Default constructor")
@ -252,8 +252,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Mat3>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Mat3>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Mat3>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Mat3>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Mat3>);
} }
SECTION("Array constructor") SECTION("Array constructor")
@ -293,8 +293,8 @@ TEST_CASE("[Graphics] sf::Glsl")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glsl::Mat4>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glsl::Mat4>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glsl::Mat4>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glsl::Mat4>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glsl::Mat4>);
} }
static constexpr std::array<float, 16> data = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; static constexpr std::array<float, 16> data = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};

View File

@ -11,8 +11,8 @@ TEST_CASE("[Graphics] sf::Glyph")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glyph>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Glyph>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glyph>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Glyph>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Glyph>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Glyph>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Glyph>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Glyph>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -13,8 +13,8 @@ TEMPLATE_TEST_CASE("[Graphics] sf::Rect", "", int, float)
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Rect<TestType>>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Rect<TestType>>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Rect<TestType>>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Rect<TestType>>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Rect<TestType>>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -11,8 +11,8 @@ TEST_CASE("[Graphics] sf::RenderStates")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::RenderStates>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::RenderStates>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::RenderStates>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::RenderStates>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::RenderStates>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::RenderStates>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::RenderStates>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::RenderStates>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -10,8 +10,8 @@ TEST_CASE("[Graphics] sf::StencilMode")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::StencilMode>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::StencilMode>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::StencilMode>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::StencilMode>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::StencilMode>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::StencilMode>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::StencilMode>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::StencilMode>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -17,8 +17,8 @@ TEST_CASE("[Graphics] sf::Transform")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Transform>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Transform>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Transform>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Transform>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Transform>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Transform>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Transform>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Transform>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -11,8 +11,8 @@ TEST_CASE("[Graphics] sf::Vertex")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vertex>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vertex>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vertex>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vertex>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vertex>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Vertex>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vertex>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Vertex>);
STATIC_CHECK(std::is_aggregate_v<sf::Vertex>); STATIC_CHECK(std::is_aggregate_v<sf::Vertex>);
} }

View File

@ -11,8 +11,8 @@ TEST_CASE("[Graphics] sf::View")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::View>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::View>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::View>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::View>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::View>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::View>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::View>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::View>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -15,8 +15,8 @@ TEST_CASE("[Network] sf::IpAddress")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::IpAddress>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::IpAddress>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::IpAddress>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::IpAddress>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::IpAddress>); STATIC_CHECK(std::is_trivially_copyable_v<sf::IpAddress>);
} }

View File

@ -11,8 +11,8 @@ TEST_CASE("[System] sf::Angle")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Angle>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Angle>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Angle>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Angle>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Angle>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Angle>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Angle>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Angle>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Angle>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Angle>);
} }

View File

@ -15,8 +15,8 @@ TEST_CASE("[System] sf::Clock")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Clock>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Clock>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Clock>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Clock>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Clock>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Clock>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Clock>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Clock>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -63,8 +63,8 @@ TEST_CASE("[System] sf::U8StringCharTraits")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::U8StringCharTraits>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::U8StringCharTraits>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::U8StringCharTraits>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::U8StringCharTraits>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::U8StringCharTraits>);
} }
SECTION("assign(char_type&, const char_type&)") SECTION("assign(char_type&, const char_type&)")

View File

@ -13,8 +13,8 @@ TEST_CASE("[System] sf::Time")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Time>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Time>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Time>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Time>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Time>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Time>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Time>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Time>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Time>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Time>);
} }

View File

@ -15,8 +15,8 @@ TEMPLATE_TEST_CASE("[System] sf::Vector2", "", int, float)
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Vector2<TestType>>);
STATIC_CHECK(std::is_trivially_copyable_v<sf::Vector2<TestType>>); STATIC_CHECK(std::is_trivially_copyable_v<sf::Vector2<TestType>>);
} }

View File

@ -11,8 +11,8 @@ TEMPLATE_TEST_CASE("[System] sf::Vector3", "", int, float)
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Vector3<TestType>>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Vector3<TestType>>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Vector3<TestType>>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector3<TestType>>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Vector3<TestType>>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -10,8 +10,8 @@ TEST_CASE("[Window] sf::ContextSettings")
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::ContextSettings>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::ContextSettings>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::ContextSettings>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::ContextSettings>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::ContextSettings>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::ContextSettings>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::ContextSettings>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::ContextSettings>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -45,8 +45,8 @@ TEST_CASE("[Window] sf::Event")
STATIC_CHECK(!std::is_default_constructible_v<sf::Event>); STATIC_CHECK(!std::is_default_constructible_v<sf::Event>);
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Event>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::Event>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Event>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::Event>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Event>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::Event>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Event>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::Event>);
} }
SECTION("Construction") SECTION("Construction")

View File

@ -12,8 +12,8 @@ TEST_CASE("[Window] sf::VideoMode", runDisplayTests())
{ {
STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::VideoMode>); STATIC_CHECK(std::is_trivially_copy_constructible_v<sf::VideoMode>);
STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::VideoMode>); STATIC_CHECK(std::is_trivially_copy_assignable_v<sf::VideoMode>);
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::VideoMode>); STATIC_CHECK(std::is_trivially_move_constructible_v<sf::VideoMode>);
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::VideoMode>); STATIC_CHECK(std::is_trivially_move_assignable_v<sf::VideoMode>);
} }
SECTION("Construction") SECTION("Construction")