
1 Oct
2004
1 Oct
'04
10:08 p.m.
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@acm.org