Last I knew, the standard said it should be
class B;
class A{
friend class B;
....
};
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Oliver
King-Smith
Sent: Saturday, July 22, 2000 8:53 PM
To: Palm Developer Forum
Subject: CW C++ problem
I have some code that worked fine in CW 4, but does not compile in CW 6.
(I went straight from 4 to 6 so I don't know if it works in 5). Here is
the snippet in its most reduce form:
class B;
class A{
friend B;
....
};
This now produce the following error
illegal friend declaration
Has there been some change in the C++ standard so this is no longer legal?
Or was this never legal but CW 4 took it?
Oliver
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/