forked from boostorg/mp11
Detect libstdc++ properly instead of checking for libc++
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
||||||
|
|
||||||
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( defined( _LIBCPP_VERSION ) && __cplusplus < 201400L )
|
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( !defined( __GLIBCXX__ ) && __cplusplus < 201400L )
|
||||||
|
|
||||||
int main() {}
|
int main() {}
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ int main()
|
|||||||
|
|
||||||
BOOST_TEST_EQ( (mp_for_each<std::pair<int, short>>( F{0} ).s), 12 );
|
BOOST_TEST_EQ( (mp_for_each<std::pair<int, short>>( F{0} ).s), 12 );
|
||||||
|
|
||||||
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( defined( _LIBCPP_VERSION ) && __cplusplus < 201400L )
|
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( !defined( __GLIBCXX__ ) && __cplusplus < 201400L )
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static_assert( mp_for_each<mp_list<>>( 11 ) == 11, "mp_for_each<mp_list<>>( 11 ) == 11" );
|
static_assert( mp_for_each<mp_list<>>( 11 ) == 11, "mp_for_each<mp_list<>>( 11 ) == 11" );
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
||||||
|
|
||||||
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( defined( _LIBCPP_VERSION ) && __cplusplus < 201400L )
|
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( !defined( __GLIBCXX__ ) && __cplusplus < 201400L )
|
||||||
|
|
||||||
int main() {}
|
int main() {}
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
||||||
|
|
||||||
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( defined( _LIBCPP_VERSION ) && __cplusplus < 201400L )
|
#if defined( BOOST_NO_CXX11_CONSTEXPR ) || ( !defined( __GLIBCXX__ ) && __cplusplus < 201400L )
|
||||||
|
|
||||||
int main() {}
|
int main() {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user