|
Boost : |
From: Thomas Witt (witt_at_[hidden])
Date: 2004-10-01 12:37:58
Gennadiy Rozental wrote:
>>>class input_iterator_adaptor define like this:
>>>
>>>class input_iterator_facade : public iterator_facade<...>
>>>Any recommendations?
>>
>>Is input_iterator_facade defined in the same namespace as
>>iterator_core_access? If not, the friend declaration is doing the
>>wrong thing.
>>
>>--
>>Dave Abrahams
>
>
> input_iterator_facade reside in namespace boost::unit_test.
If you intend to make boost::iterator_core_access friend the friend
declaration is indeed wrong as Dave suggested. There is basically no
name lookup for friend declarations. I.e. a non qualified name in a
friend declaration either declares a class/function in the current
namespace or "refers" to such a thing that is in the current namespace.
of boost you need to say friend class boost::iterator_core_accessIn
order to make boost::iterator_core_access friend from a sub namespace.
HTH
Thomas
-- Thomas Witt witt_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk