Work around friend bug in clang.

[SVN r61504]
This commit is contained in:
Daniel James
2010-04-23 07:25:53 +00:00
parent 10e24f93c4
commit 5bab4d4360

View File

@ -734,8 +734,18 @@ namespace boost { namespace unordered_detail {
class iterator_access
{
public:
// Note: we access Iterator::base here, rather than in the function
// signature to work around a bug in the friend support of an
// early version of clang.
template <class Iterator>
static BOOST_DEDUCED_TYPENAME Iterator::base const&
struct base
{
typedef BOOST_DEDUCED_TYPENAME Iterator::base type;
};
template <class Iterator>
static BOOST_DEDUCED_TYPENAME base<Iterator>::type const&
get(Iterator const& it)
{
return it.base_;