From c42c0dcbc90fa74b50b28b68c9420ceb111d5da3 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 13 Jun 2022 22:01:20 +0200 Subject: [PATCH] Replace deprecated std::is_pod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apps/openmw_test_suite/esm/test_fixed_string.cpp:99:23: warning: ‘template struct std::is_pod’ is deprecated: use is_standard_layout && is_trivial instead [-Wdeprecated-declarations] 99 | ASSERT_TRUE(std::is_pod::value); | ^~~~~~ --- apps/openmw_test_suite/esm/test_fixed_string.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw_test_suite/esm/test_fixed_string.cpp b/apps/openmw_test_suite/esm/test_fixed_string.cpp index 1189f667e5..edd5b6bd59 100644 --- a/apps/openmw_test_suite/esm/test_fixed_string.cpp +++ b/apps/openmw_test_suite/esm/test_fixed_string.cpp @@ -96,9 +96,9 @@ TEST(EsmFixedString, struct_size) TEST(EsmFixedString, is_pod) { - ASSERT_TRUE(std::is_pod::value); - ASSERT_TRUE(std::is_pod::value); - ASSERT_TRUE(std::is_pod::value); + ASSERT_TRUE(std::is_standard_layout_v && std::is_trivial_v); + ASSERT_TRUE(std::is_standard_layout_v && std::is_trivial_v); + ASSERT_TRUE(std::is_standard_layout_v && std::is_trivial_v); } TEST(EsmFixedString, assign_should_zero_untouched_bytes_for_4)