Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75167 - in trunk: boost/unordered/detail libs/unordered/doc
From: dnljms_at_[hidden]
Date: 2011-10-29 12:31:42


Author: danieljames
Date: 2011-10-29 12:31:40 EDT (Sat, 29 Oct 2011)
New Revision: 75167
URL: http://svn.boost.org/trac/boost/changeset/75167

Log:
Unordered: Don't use SFINAE expression hack on Visual C++.

Sometimes it doesn't work. This means I can clean up the implementation
for other compilers, but I'll leave that for now.

Text files modified:
   trunk/boost/unordered/detail/allocator_helpers.hpp | 2 +-
   trunk/libs/unordered/doc/compliance.qbk | 4 +---
   2 files changed, 2 insertions(+), 4 deletions(-)

Modified: trunk/boost/unordered/detail/allocator_helpers.hpp
==============================================================================
--- trunk/boost/unordered/detail/allocator_helpers.hpp (original)
+++ trunk/boost/unordered/detail/allocator_helpers.hpp 2011-10-29 12:31:40 EDT (Sat, 29 Oct 2011)
@@ -108,7 +108,7 @@
         convert_from_anything(T const&);
     };
 
-#if !defined(BOOST_NO_SFINAE_EXPR) || BOOST_WORKAROUND(BOOST_MSVC, >= 1500)
+#if !defined(BOOST_NO_SFINAE_EXPR)
 
 # define BOOST_UNORDERED_HAVE_CALL_DETECTION 1
 

Modified: trunk/libs/unordered/doc/compliance.qbk
==============================================================================
--- trunk/libs/unordered/doc/compliance.qbk (original)
+++ trunk/libs/unordered/doc/compliance.qbk 2011-10-29 12:31:40 EDT (Sat, 29 Oct 2011)
@@ -36,9 +36,7 @@
 member function detection so that the fallback is used whenever the
 member function call is not well formed.
 This requires support for SFINAE expressions, which are available on
-GCC from version 4.4 and Clang. They aren't supported by
-Visual C++ 2008/2010, but with a bit of hacking it's possible to support
-certain use cases.
+GCC from version 4.4 and Clang.
 
 On other compilers, there's just a test to see if the allocator has
 a member, but no check that it can be called. So rather than using a


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