mirror of
https://github.com/boostorg/type_traits.git
synced 2025-08-01 05:24:38 +02:00
Disable testing volatile return types in C++20:
as they're deprecated.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user