C++ language lawyer question
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Sep 30 09:52:00 GMT 2003
Gerald Pfeifer <gerald@pfeifer.com> writes:
| + <li>In case of friend declarations that refer to members of a class,
| + these members need to be <code>public</code>, whereas G++ used to
| + accept <code>private</code>/<code>protected</code> members as well.
"need to be public" is both too strong and incomplete.
What is required is that every name used in the friend declaration be
accessible at the point of declaration.
-- Gaby
More information about the Gcc
mailing list