From ef79fea0b7d9f6f27bc72ba0c931514c153d3d1b Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 24 Apr 2010 12:59:35 +0000 Subject: [PATCH] The clang workaround broke some compilers, so only use it for clang. [SVN r61529] --- include/boost/unordered/detail/fwd.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/boost/unordered/detail/fwd.hpp b/include/boost/unordered/detail/fwd.hpp index ce1d5bd1..a290ded9 100644 --- a/include/boost/unordered/detail/fwd.hpp +++ b/include/boost/unordered/detail/fwd.hpp @@ -731,6 +731,18 @@ namespace boost { namespace unordered_detail { // Iterator Access +#if !defined(__clang__) + class iterator_access + { + public: + template + static BOOST_DEDUCED_TYPENAME Iterator::base const& + get(Iterator const& it) + { + return it.base_; + } + }; +#else class iterator_access { public: @@ -751,6 +763,7 @@ namespace boost { namespace unordered_detail { return it.base_; } }; +#endif // Iterators