1
0
forked from boostorg/mp11

Disable constexpr mp_for_each test on libc++/C++11 due to std::forward not constexpr

This commit is contained in:
Peter Dimov
2017-05-13 01:41:09 +03:00
parent 0241f0531b
commit 4338af3c49

View File

@@ -48,7 +48,8 @@ int main()
BOOST_TEST_EQ( (mp_for_each<std::pair<int, short>>( 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<mp_list<>>( 11 ) == 11, "mp_for_each<mp_list<>>( 11 ) == 11" );
static_assert( mp_for_each<std::tuple<>>( 12 ) == 12, "mp_for_each<std::tuple<>>( 12 ) == 12" );