Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78378 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2012-05-08 07:02:31


Author: danieljames
Date: 2012-05-08 07:02:29 EDT (Tue, 08 May 2012)
New Revision: 78378
URL: http://svn.boost.org/trac/boost/changeset/78378

Log:
Unordered: Fix macros for picking construct/destroy.
Text files modified:
   trunk/boost/unordered/detail/allocator_helpers.hpp | 9 +++------
   1 files changed, 3 insertions(+), 6 deletions(-)

Modified: trunk/boost/unordered/detail/allocator_helpers.hpp
==============================================================================
--- trunk/boost/unordered/detail/allocator_helpers.hpp (original)
+++ trunk/boost/unordered/detail/allocator_helpers.hpp 2012-05-08 07:02:29 EDT (Tue, 08 May 2012)
@@ -459,10 +459,6 @@
             new ((void*) p) T(x);
         }
 
-# endif
-
-# if BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT
-
         template <typename T>
         static typename boost::enable_if_c<
                 boost::unordered::detail::has_destroy<Alloc, T>::value>::type
@@ -481,8 +477,9 @@
 
 # else
 
- // If we don't have SFINAE expressions, only call construct the type
- // that matches the allocator.
+ // If we don't have SFINAE expressions, only call construct for the
+ // copy constructor for the allocator's value_type - as that's
+ // the only construct method that old fashioned allocators support.
 
         template <typename T>
         static typename boost::enable_if_c<


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