From 24c08646f4619e452ca1e820d3044e2b2fd31060 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 8 May 2012 11:02:29 +0000 Subject: [PATCH] Unordered: Fix macros for picking construct/destroy. [SVN r78378] --- include/boost/unordered/detail/allocator_helpers.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/boost/unordered/detail/allocator_helpers.hpp b/include/boost/unordered/detail/allocator_helpers.hpp index 1916e1ac..d77aa6a1 100644 --- a/include/boost/unordered/detail/allocator_helpers.hpp +++ b/include/boost/unordered/detail/allocator_helpers.hpp @@ -459,10 +459,6 @@ namespace boost { namespace unordered { namespace detail { new ((void*) p) T(x); } -# endif - -# if BOOST_UNORDERED_DETAIL_FULL_CONSTRUCT - template static typename boost::enable_if_c< boost::unordered::detail::has_destroy::value>::type @@ -481,8 +477,9 @@ namespace boost { namespace unordered { namespace detail { # 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 static typename boost::enable_if_c<