From 4338af3c49e10a798ef5b2ef306395b3f183418f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 13 May 2017 01:41:09 +0300 Subject: [PATCH] Disable constexpr mp_for_each test on libc++/C++11 due to std::forward not constexpr --- test/mp_for_each.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/mp_for_each.cpp b/test/mp_for_each.cpp index b7d0a21..31ad7c5 100644 --- a/test/mp_for_each.cpp +++ b/test/mp_for_each.cpp @@ -48,7 +48,8 @@ int main() BOOST_TEST_EQ( (mp_for_each>( F{0} ).s), 12 ); -#if !defined( BOOST_NO_CXX11_CONSTEXPR ) +#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( defined( _LIBCPP_VERSION ) && __cplusplus < 201400L ) +#else static_assert( mp_for_each>( 11 ) == 11, "mp_for_each>( 11 ) == 11" ); static_assert( mp_for_each>( 12 ) == 12, "mp_for_each>( 12 ) == 12" );