From 89a062e7b88bb18120f3b8bbc96cc0778d6e2820 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Wed, 27 Jan 2021 19:32:29 +0000 Subject: [PATCH] Disable testing volatile return types in C++20: as they're deprecated. --- test/common_type_4_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/common_type_4_test.cpp b/test/common_type_4_test.cpp index d046b6a..efbb172 100644 --- a/test/common_type_4_test.cpp +++ b/test/common_type_4_test.cpp @@ -51,7 +51,10 @@ TT_TEST_BEGIN(common_type_4) BOOST_CHECK_TYPE(tt::common_type::type, UDT(*)()); BOOST_CHECK_TYPE(tt::common_type::type, UDT const(*)()); +#if __cplusplus <= 201703 + // Deprecated in C++20: BOOST_CHECK_TYPE(tt::common_type::type, UDT volatile(*)()); BOOST_CHECK_TYPE(tt::common_type::type, UDT const volatile(*)()); +#endif } TT_TEST_END