Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74103 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2011-08-28 07:31:44


Author: danieljames
Date: 2011-08-28 07:31:43 EDT (Sun, 28 Aug 2011)
New Revision: 74103
URL: http://svn.boost.org/trac/boost/changeset/74103

Log:
Unordered: Hopefully vacpp will like this more.
Text files modified:
   trunk/boost/unordered/detail/allocator_helpers.hpp | 5 ++++-
   1 files changed, 4 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 2011-08-28 07:31:43 EDT (Sun, 28 Aug 2011)
@@ -93,6 +93,7 @@
     struct choice2 : choice3 { typedef char (&type)[2]; };
     struct choice1 : choice2 { typedef char (&type)[1]; };
     choice1 choose();
+ template <typename T> struct wrap { typedef void* type; };
 
     #define BOOST_DEFAULT_TYPE_TMPLT(tname) \
         template <typename Tp, typename Default> \
@@ -100,7 +101,9 @@
                                                                             \
             template <typename X> \
             static choice1::type test(choice1, \
- BOOST_DEDUCED_TYPENAME X::tname* = 0); \
+ BOOST_DEDUCED_TYPENAME wrap< \
+ BOOST_DEDUCED_TYPENAME X::tname \
+ >::type = 0); \
                                                                             \
             template <typename X> \
             static choice2::type test(choice2, void* = 0); \


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