Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2004-03-09 16:40:50

Pavol Droba wrote:

> Hi,
> I have a problem with iterator_facade usage. Error is reported by Comeau and
> MIPSPro compilers:
> An error output can be found in regression tables:
> The compiler is reporting, that iterator_core_access cannot access
> the private equal() function, althought it has been marked as friend.

IIUC the compiler is right. The friend declaration in
boost::algorithm::find_iterator declares
boost::algorithm::iterator_core_access as friend. Not
boost::iterator_core_access. IIUC there is no name lookup on unqualified
names in friend class declarations. See core issue 138 for further

Changing the friend declaration to friend class
::boost::iterator_core_access should fix the problem.


Thomas Witt

Boost list run by bdawes at, gregod at, cpdaniel at, john at