From 79ed1693ff84587638e4d820a256f933d4ab69c1 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 28 May 2008 10:58:42 +0000 Subject: [PATCH] Make it possible to pass the unordered move tests without rvalue references - although compilers still require good return value optimisation. [SVN r45864] --- test/unordered/move_tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unordered/move_tests.cpp b/test/unordered/move_tests.cpp index 83dd4312..3ed99138 100644 --- a/test/unordered/move_tests.cpp +++ b/test/unordered/move_tests.cpp @@ -125,7 +125,13 @@ namespace move_tests { test::random_values v(25); T y(create(v, count, hf, eq, al, 1.0), al); +#if defined(BOOST_HAS_RVALUE_REFS) BOOST_CHECK(count == test::global_object_count); +#else + BOOST_CHECK(test::global_object_count.constructions - count.constructions <= + test::is_map::value ? 50 : 25); + BOOST_CHECK(count.instances == test::global_object_count.instances); +#endif test::check_container(y, v); BOOST_CHECK(test::equivalent(y.hash_function(), hf)); BOOST_CHECK(test::equivalent(y.key_eq(), eq));