Lars Gullik BjÃnnes wrote:

>>> Why have this here? and not int he positerator.C file?
>>
> | Because I need ParPosition which is not defined in the header file.
> | Should I put it on the header?
> 
> forward delcare...

? I need the declaration to use it. The class declaration is on the
iterators.C file. Therefore, the only place I can put it is there.
 
>>> why do they have to be friends?
>>
> | Because I need private members of PosIterator in the
> | PosIterator(Pariterator, pos) constructor. What should I be doing
> | instead?
> 
> Unprivate the members?

Sorry, meant "private members of ParIterator" (i.e. the whole ParIterator
stack)

> friend the whole PosIterator class so that forward delcaration will
> work?

Uh? What forward declaration?

friend only the function in question (a contructor) would be ok? Does it
mean I have to include the PosIterator.h file in the header? That would be
bad...

Alfredo


Reply via email to