Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78166 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2012-04-23 16:52:09


Author: danieljames
Date: 2012-04-23 16:52:08 EDT (Mon, 23 Apr 2012)
New Revision: 78166
URL: http://svn.boost.org/trac/boost/changeset/78166

Log:
Unordered: Disable std::allocator_traits on gcc for now.
Text files modified:
   trunk/boost/unordered/detail/allocator_helpers.hpp | 12 +++++++++++-
   1 files changed, 11 insertions(+), 1 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-04-23 16:52:08 EDT (Mon, 23 Apr 2012)
@@ -27,14 +27,24 @@
 #include <boost/utility/addressof.hpp>
 
 #if !defined(BOOST_UNORDERED_USE_ALLOCATOR_TRAITS)
+// An allocator_traits test is currently failing for gcc 4.7 on mingw. I think
+// this is because it's an older development version. Temporarily disabling
+// std::allocator_traits in order ot get clean test results. Will reactivate
+// later.
+
+/*
 # if defined(__GXX_EXPERIMENTAL_CXX0X__) && \
             (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
 # define BOOST_UNORDERED_USE_ALLOCATOR_TRAITS 1
 # endif
-#
+*/
+
+// Use container's allocator_traits for older versions of Visual C++ as I don't
+// test with them.
 # if defined(BOOST_MSVC) && BOOST_MSVC < 1400
 # define BOOST_UNORDERED_USE_ALLOCATOR_TRAITS 2
 # endif
+
 #endif
 
 #if !defined(BOOST_UNORDERED_USE_ALLOCATOR_TRAITS)


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