C++ language lawyer question

Bruce Stephens bruce@cenderis.demon.co.uk
Tue Sep 30 01:17:00 GMT 2003


Gerald Pfeifer <gerald@pfeifer.com> writes:

[...]

> ...and if the "invited" friend is a member of a class, it must not
> be private or protected.  This is the difference between GCC 3.3 and
> 3.4.

Ah, I see.  Interesting question: can one bestow friendship on a
private or protected member.  Yes, that requires a language lawyer.
I've got the standard, but I'm not sure I'd be able to work out the
answer from it.

[...]



More information about the Gcc mailing list