Frank Birbacher wrote:
> Barry schrieb:
>> Well, my compiler(msvc8.0) hates the program again
>
> I tried msvc8 express on this:
>
> class B
> {
> friend class A;
^^^^^^^^^^^^^^^
Drop this, it's unnecessary.
> protected:
> B() {}
> ~B() {}
> };
>
> class A
> {
> friend B::B();
> public:
> A() {}
> ~A() {}
> };
>
> which compiles cleanly.
Try actually exercising the friendship next time. See my other
post for a program that does that.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask