|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74605 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2011-09-28 19:50:28
Author: danieljames
Date: 2011-09-28 19:50:27 EDT (Wed, 28 Sep 2011)
New Revision: 74605
URL: http://svn.boost.org/trac/boost/changeset/74605
Log:
Unordered: Tweak member detection for sun.
Detect using a member pointer, rather than a member function pointer.
Sun seems to be happier with that.
Text files modified:
trunk/boost/unordered/detail/allocator_helpers.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 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-09-28 19:50:27 EDT (Wed, 28 Sep 2011)
@@ -236,10 +236,10 @@
#define BOOST_UNORDERED_HAS_MEMBER(name) \
struct BOOST_PP_CAT(has_, name) \
{ \
- struct base_mixin { void name(); }; \
+ struct base_mixin { int name; }; \
struct base : public T, public base_mixin {}; \
\
- BOOST_UNORDERED_CHECK_MEMBER(1, 1, name, void (base_mixin::*)()); \
+ BOOST_UNORDERED_CHECK_MEMBER(1, 1, name, int base_mixin::*); \
BOOST_UNORDERED_DEFAULT_MEMBER(2, 2); \
\
enum { value = sizeof(choice2::type) == \
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