From 8ae166a2c34ed83d51c1d02b69b6ef7eda593637 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 15 Jan 2014 00:00:01 +0000 Subject: [PATCH] Tweak compiler checks in unnecessary_copy_tests. I'm running these tests by default now, which will probably break several compilers, so I'll need to add extra conditions later. --- test/unordered/unnecessary_copy_tests.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/unordered/unnecessary_copy_tests.cpp b/test/unordered/unnecessary_copy_tests.cpp index 505326d9..161f943b 100644 --- a/test/unordered/unnecessary_copy_tests.cpp +++ b/test/unordered/unnecessary_copy_tests.cpp @@ -441,9 +441,8 @@ namespace unnecessary_copy_tests x.emplace(source >()); COPY_COUNT(2); MOVE_COUNT(source_pair_cost); -#if (defined(__GNUC__) && __GNUC__ > 4) || \ - (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ > 2) || \ - (defined(BOOST_MSVC) && BOOST_MSVC >= 1600 ) +#if !(defined(__GNUC__) && __cplusplus < 199900L) && \ + !(defined(BOOST_MSVC) && BOOST_MSVC < 1600) count_copies part; reset(); std::pair a_ref(part, part); @@ -510,8 +509,8 @@ namespace unnecessary_copy_tests COPY_COUNT(tuple_copy_cost); MOVE_COUNT(tuple_move_cost); -#if defined(__GNUC__) && __GNUC__ > 4 || \ - defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ >= 6 +#if !defined(BOOST_NO_CXX11_HDR_TUPLE) && \ + !(defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ < 6) reset(); x.emplace(boost::unordered::piecewise_construct, std::forward_as_tuple(b.first),