This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ language lawyer question
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.
[...]