forked from boostorg/unordered
A few tweaks for the unordered tests.
Merged revisions 44461-44462,44466 via svnmerge from https://svn.boost.org/svn/boost/branches/unordered/trunk ........ r44461 | danieljames | 2008-04-16 18:34:48 +0100 (Wed, 16 Apr 2008) | 2 lines Try to get some more tests working on Borland. ........ r44462 | danieljames | 2008-04-16 18:34:59 +0100 (Wed, 16 Apr 2008) | 2 lines Write out the number of copies when the unnecessary copy test fails. ........ r44466 | danieljames | 2008-04-16 18:35:44 +0100 (Wed, 16 Apr 2008) | 2 lines Add compile test for get_allocator. ........ [SVN r44488]
This commit is contained in:
@@ -45,8 +45,13 @@ namespace unnecessary_copy_tests
|
||||
T x;
|
||||
BOOST_DEDUCED_TYPENAME T::value_type a;
|
||||
BOOST_CHECK(count_copies::count == 1);
|
||||
if(count_copies::count != 1)
|
||||
std::cerr<<count_copies::count<<" copies.\n";
|
||||
|
||||
x.insert(a);
|
||||
BOOST_CHECK(count_copies::count == 2);
|
||||
if(count_copies::count != 1)
|
||||
std::cerr<<count_copies::count<<" copies.\n";
|
||||
}
|
||||
|
||||
boost::unordered_set<count_copies>* set;
|
||||
|
||||
Reference in New Issue
Block a user