Disable testing volatile return types in C++20:

as they're deprecated.
This commit is contained in:
jzmaddock committed 2021-01-27 19:32:29 +00:00
1 parent 1b0cf49465
commit 89a062e7b8
1 file changed
+3
+3
View File
@@ -51,7 +51,10 @@ TT_TEST_BEGIN(common_type_4)
BOOST_CHECK_TYPE(tt::common_type<UDT()>::type, UDT(*)());
BOOST_CHECK_TYPE(tt::common_type<UDT const()>::type, UDT const(*)());
#if __cplusplus <= 201703
// Deprecated in C++20:
BOOST_CHECK_TYPE(tt::common_type<UDT volatile()>::type, UDT volatile(*)());
BOOST_CHECK_TYPE(tt::common_type<UDT const volatile()>::type, UDT const volatile(*)());
#endif
}
TT_TEST_END