$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r74308 - in branches/release: boost/unordered boost/unordered/detail libs/unordered
From: dnljms_at_[hidden]
Date: 2011-09-08 03:33:35
Author: danieljames
Date: 2011-09-08 03:33:34 EDT (Thu, 08 Sep 2011)
New Revision: 74308
URL: http://svn.boost.org/trac/boost/changeset/74308
Log:
Unordered: Move from trunk.
Properties modified: 
   branches/release/boost/unordered/   (props changed)
   branches/release/libs/unordered/   (props changed)
Text files modified: 
   branches/release/boost/unordered/detail/allocator_helpers.hpp |    18 +++++++++++++++++-                      
   branches/release/boost/unordered/detail/util.hpp              |    16 ----------------                        
   2 files changed, 17 insertions(+), 17 deletions(-)
Modified: branches/release/boost/unordered/detail/allocator_helpers.hpp
==============================================================================
--- branches/release/boost/unordered/detail/allocator_helpers.hpp	(original)
+++ branches/release/boost/unordered/detail/allocator_helpers.hpp	2011-09-08 03:33:34 EDT (Thu, 08 Sep 2011)
@@ -56,6 +56,22 @@
 
 namespace boost { namespace unordered { namespace detail {
 
+    // Explicitly call a destructor
+
+#if defined(BOOST_MSVC)
+#pragma warning(push)
+#pragma warning(disable:4100) // unreferenced formal parameter
+#endif
+
+    template <class T>
+    inline void destroy(T* x) {
+        x->~T();
+    }
+
+#if defined(BOOST_MSVC)
+#pragma warning(pop)
+#endif
+
 #if BOOST_UNORDERED_USE_ALLOCATOR_TRAITS
     template <typename Alloc>
     struct allocator_traits : std::allocator_traits<Alloc> {};
@@ -364,7 +380,7 @@
         static void destroy(Alloc&, T* p, typename
                 boost::disable_if<has_destroy<Alloc, T>, void*>::type = 0)
         {
-            p->~T();
+            ::boost::unordered::detail::destroy(p);
         }
 
         static size_type max_size(const Alloc& a)
Modified: branches/release/boost/unordered/detail/util.hpp
==============================================================================
--- branches/release/boost/unordered/detail/util.hpp	(original)
+++ branches/release/boost/unordered/detail/util.hpp	2011-09-08 03:33:34 EDT (Thu, 08 Sep 2011)
@@ -117,22 +117,6 @@
     struct map_extractor;
     struct no_key;
 
-    // Explicitly call a destructor
-
-#if defined(BOOST_MSVC)
-#pragma warning(push)
-#pragma warning(disable:4100) // unreferenced formal parameter
-#endif
-
-    template <class T>
-    inline void destroy(T* x) {
-        x->~T();
-    }
-
-#if defined(BOOST_MSVC)
-#pragma warning(pop)
-#endif
-
 #if !defined(BOOST_NO_RVALUE_REFERENCES)
 
 #define BOOST_UNORDERED_RV_REF(T) BOOST_RV_REF(T)