> Has there been some change in the C++ standard so this is no longer legal?
Yeah, the standard was tightened up a bit, and CW changed to conform to it. You
need to say "friend class B".
-- Keith Rollin
-- Palm OS Emulator engineer
Oliver King-Smith <[EMAIL PROTECTED]> on 07/22/2000 05:53:20 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: Oliver King-Smith <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
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/