Skip to content

Commit a2d2ab0

Browse files
committed
Disable <=> tests when <compare> isn't available
1 parent 84d0f84 commit a2d2ab0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

test/array_thw_test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ int main() {}
1818
BOOST_PRAGMA_MESSAGE( "Test skipped because __cpp_impl_three_way_comparison is defined to " BOOST_STRINGIZE(__cpp_impl_three_way_comparison) )
1919
int main() {}
2020

21+
#elif !__has_include(<compare>)
22+
23+
BOOST_PRAGMA_MESSAGE( "Test skipped because <compare> is not available" )
24+
int main() {}
25+
2126
#else
2227

2328
template<class T, std::size_t N> void test()

test/array_thw_test_cx.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ int main() {}
1818
BOOST_PRAGMA_MESSAGE( "Test skipped because __cpp_impl_three_way_comparison is defined to " BOOST_STRINGIZE(__cpp_impl_three_way_comparison) )
1919
int main() {}
2020

21+
#elif !__has_include(<compare>)
22+
23+
BOOST_PRAGMA_MESSAGE( "Test skipped because <compare> is not available" )
24+
int main() {}
25+
2126
#else
2227

2328
#define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)

0 commit comments

Comments
 (0)