File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#include < boost/config/pragma_message.hpp>
99#include < cstddef>
1010
11+ #if defined(__has_include)
12+ # if __has_include(<compare>)
13+ # define HAS_COMPARE
14+ # endif
15+ #endif
16+
1117#if !defined(__cpp_impl_three_way_comparison)
1218
1319BOOST_PRAGMA_MESSAGE ( " Test skipped because __cpp_impl_three_way_comparison is not defined" )
@@ -18,6 +24,11 @@ int main() {}
1824BOOST_PRAGMA_MESSAGE ( " Test skipped because __cpp_impl_three_way_comparison is defined to " BOOST_STRINGIZE(__cpp_impl_three_way_comparison) )
1925int main() {}
2026
27+ #elif !defined(HAS_COMPARE)
28+
29+ BOOST_PRAGMA_MESSAGE ( " Test skipped because <compare> is not available" )
30+ int main() {}
31+
2132#else
2233
2334template <class T , std::size_t N> void test ()
Original file line number Diff line number Diff line change 88#include < boost/config/workaround.hpp>
99#include < cstddef>
1010
11+ #if defined(__has_include)
12+ # if __has_include(<compare>)
13+ # define HAS_COMPARE
14+ # endif
15+ #endif
16+
1117#if !defined(__cpp_impl_three_way_comparison)
1218
1319BOOST_PRAGMA_MESSAGE ( " Test skipped because __cpp_impl_three_way_comparison is not defined" )
@@ -18,6 +24,11 @@ int main() {}
1824BOOST_PRAGMA_MESSAGE ( " Test skipped because __cpp_impl_three_way_comparison is defined to " BOOST_STRINGIZE(__cpp_impl_three_way_comparison) )
1925int main() {}
2026
27+ #elif !defined(HAS_COMPARE)
28+
29+ BOOST_PRAGMA_MESSAGE ( " Test skipped because <compare> is not available" )
30+ int main() {}
31+
2132#else
2233
2334#define STATIC_ASSERT (...) static_assert (__VA_ARGS__, #__VA_ARGS__)
You can’t perform that action at this time.
0 commit comments