Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-04-16 13:35:45


Author: danieljames
Date: 2008-04-16 13:35:44 EDT (Wed, 16 Apr 2008)
New Revision: 44466
URL: http://svn.boost.org/trac/boost/changeset/44466

Log:
Add compile test for get_allocator.

Text files modified:
   branches/unordered/trunk/libs/unordered/test/unordered/compile_tests.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/test/unordered/compile_tests.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/unordered/compile_tests.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/unordered/compile_tests.hpp 2008-04-16 13:35:44 EDT (Wed, 16 Apr 2008)
@@ -127,6 +127,11 @@
     test::check_return_type<size_type>::equals(a.size());
     test::check_return_type<size_type>::equals(a.max_size());
     test::check_return_type<bool>::convertible(a.empty());
+
+ // Allocator
+
+ typedef BOOST_DEDUCED_TYPENAME X::allocator_type allocator_type;
+ test::check_return_type<allocator_type>::equals(a_const.get_allocator());
 }
 
 template <class X, class Key>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk