Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2004-10-01 17:08:54


Gennadiy Rozental wrote:
>
> You basically saying that following is incorrect:
>
> namespace out {
>
> class A {};
>
> namespace in {
>
> class B {
> friend class A;
> };
>
> } // namespace in
>
> } // namespace out

Well it's incorrect if the goal is to make out::A a friend of out::in::B.

> I bit strange.

Well, yes.

> After all at the point of friend statement there is symbol A
> that fit the bill. Why exactly standard doing that?

Sorry but I don't have the rationale.

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