diff --git a/test/integral_constant_test.cpp b/test/integral_constant_test.cpp index 6938d5d..fc4cb35 100755 --- a/test/integral_constant_test.cpp +++ b/test/integral_constant_test.cpp @@ -11,6 +11,8 @@ int main () { // [2025-01-07] Adapted from example in https://en.cppreference.com/w/cpp/types/integral_constant ... +#ifndef BOOST_NO_CXX11_CONSTEXPR + using two_t = boost::integral_constant ; using four_t = boost::integral_constant ; @@ -25,4 +27,5 @@ int main () BOOST_STATIC_ASSERT ((c0::value != E::e1)); BOOST_STATIC_ASSERT ((c0 () == E::e0)); BOOST_STATIC_ASSERT ((boost::is_same ::value)); +#endif }