|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61529 - trunk/boost/unordered/detail
From: daniel_james_at_[hidden]
Date: 2010-04-24 08:59:36
Author: danieljames
Date: 2010-04-24 08:59:35 EDT (Sat, 24 Apr 2010)
New Revision: 61529
URL: http://svn.boost.org/trac/boost/changeset/61529
Log:
The clang workaround broke some compilers, so only use it for clang.
Text files modified:
trunk/boost/unordered/detail/fwd.hpp | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
Modified: trunk/boost/unordered/detail/fwd.hpp
==============================================================================
--- trunk/boost/unordered/detail/fwd.hpp (original)
+++ trunk/boost/unordered/detail/fwd.hpp 2010-04-24 08:59:35 EDT (Sat, 24 Apr 2010)
@@ -731,6 +731,18 @@
// Iterator Access
+#if !defined(__clang__)
+ class iterator_access
+ {
+ public:
+ template <class Iterator>
+ static BOOST_DEDUCED_TYPENAME Iterator::base const&
+ get(Iterator const& it)
+ {
+ return it.base_;
+ }
+ };
+#else
class iterator_access
{
public:
@@ -751,6 +763,7 @@
return it.base_;
}
};
+#endif
// Iterators
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