From 5240cd67d895dd811ca708eb5faa835de73f25b8 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 16 Feb 2018 19:38:41 +0000 Subject: [PATCH] Comparison tests: disable tests that gcc-4.6 and earlier cannot handle. --- test/has_equal_to_test.cpp | 2 +- test/has_greater_equal_test.cpp | 2 +- test/has_greater_test.cpp | 2 +- test/has_less_equal_test.cpp | 2 +- test/has_less_test.cpp | 2 +- test/has_not_equal_to_test.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/has_equal_to_test.cpp b/test/has_equal_to_test.cpp index b038854..b3eb4c7 100644 --- a/test/has_equal_to_test.cpp +++ b/test/has_equal_to_test.cpp @@ -233,7 +233,7 @@ void specific() { (void)f; (void)f2; -#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) +#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) && !BOOST_WORKAROUND(BOOST_GCC, < 40700) auto f = []() {}; auto f2 = [](double)->int { return 2; }; BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME< decltype(f)>::value), 0); diff --git a/test/has_greater_equal_test.cpp b/test/has_greater_equal_test.cpp index 8d274b9..501d98b 100644 --- a/test/has_greater_equal_test.cpp +++ b/test/has_greater_equal_test.cpp @@ -233,7 +233,7 @@ void specific() { (void)f; (void)f2; -#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) +#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) && !BOOST_WORKAROUND(BOOST_GCC, < 40700) auto f = []() {}; auto f2 = [](double)->int { return 2; }; BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME< decltype(f)>::value), 0); diff --git a/test/has_greater_test.cpp b/test/has_greater_test.cpp index 0715d31..f2daef7 100644 --- a/test/has_greater_test.cpp +++ b/test/has_greater_test.cpp @@ -233,7 +233,7 @@ void specific() { (void)f; (void)f2; -#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) +#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) && !BOOST_WORKAROUND(BOOST_GCC, < 40700) auto f = []() {}; auto f2 = [](double)->int { return 2; }; BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME< decltype(f)>::value), 0); diff --git a/test/has_less_equal_test.cpp b/test/has_less_equal_test.cpp index 4e458d3..c5214d2 100644 --- a/test/has_less_equal_test.cpp +++ b/test/has_less_equal_test.cpp @@ -233,7 +233,7 @@ void specific() { (void)f; (void)f2; -#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) +#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) && !BOOST_WORKAROUND(BOOST_GCC, < 40700) auto f = []() {}; auto f2 = [](double)->int { return 2; }; BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME< decltype(f)>::value), 0); diff --git a/test/has_less_test.cpp b/test/has_less_test.cpp index 559c9ee..40d316a 100644 --- a/test/has_less_test.cpp +++ b/test/has_less_test.cpp @@ -233,7 +233,7 @@ void specific() { (void)f; (void)f2; -#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) +#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) && !BOOST_WORKAROUND(BOOST_GCC, < 40700) auto f = []() {}; auto f2 = [](double)->int { return 2; }; BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME< decltype(f)>::value), 0); diff --git a/test/has_not_equal_to_test.cpp b/test/has_not_equal_to_test.cpp index 23df3a0..0b097cb 100644 --- a/test/has_not_equal_to_test.cpp +++ b/test/has_not_equal_to_test.cpp @@ -233,7 +233,7 @@ void specific() { (void)f; (void)f2; -#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) +#elif !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_MSVC) && !BOOST_WORKAROUND(BOOST_GCC, < 40700) auto f = []() {}; auto f2 = [](double)->int { return 2; }; BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME< decltype(f)>::value), 0);