Re: [boost] Illegal Friend?

2002-11-23 Thread David Abrahams
[EMAIL PROTECTED] (Mattias Flodin) writes: > On Sat, Nov 23, 2002 at 10:57:17AM -0500, Eric Woodruff wrote: >> It is ridiculous that I can't give access to an inaccessible class. You have >> to have access to be able to give it? What is the justification for this? > > The reason for making things

Re: [boost] Illegal Friend?

2002-11-23 Thread Mattias Flodin
On Sat, Nov 23, 2002 at 10:57:17AM -0500, Eric Woodruff wrote: > It is ridiculous that I can't give access to an inaccessible class. You have > to have access to be able to give it? What is the justification for this? The reason for making things private is to say "this is an implementation detail

[boost] Illegal Friend?

2002-11-23 Thread Eric Woodruff
According to g++ and comeau, the following is illegal: (The commented line allows the code to compile.) class A { public: A () {} ~A () {} private: class Nested; //friend class B; }; class B { public: B () {} ~B () {} private: friend class A::N