Make it possible to pass the unordered move tests without rvalue references - although compilers still require good return value optimisation.

[SVN r45864]
This commit is contained in:
Daniel James
2008-05-28 10:58:42 +00:00
parent 28549b3160
commit 79ed1693ff

View File

@@ -125,7 +125,13 @@ namespace move_tests
{
test::random_values<T> 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<T>::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));