Access the method insert() using its fully qualified name.

This commit is contained in:
Roberto Raggi
2010-01-14 14:12:40 +01:00
parent 45fb49ccdc
commit 35e3526825

View File

@@ -202,9 +202,10 @@ template <> struct Compare<SelectorNameId>
template <typename _Tp>
class Table: public std::set<_Tp, Compare<_Tp> >
{
typedef std::set<_Tp, Compare<_Tp> > _Base;
public:
_Tp *intern(const _Tp &element)
{ return const_cast<_Tp *>(&*insert(element).first); }
{ return const_cast<_Tp *>(&*_Base::insert(element).first); }
};
} // end of anonymous namespace