From 5329d1d4978d737eb0b49e114156b262a53ca6f2 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 21 Apr 2025 13:40:42 +0100 Subject: [PATCH] Disable constexpr test in C++03. --- test/integral_constant_test.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 }