[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    Re: C++ language lawyer question
From:       Gabriel Dos Reis <gdr () integrable-solutions ! net>
Date:       2003-09-30 7:27:26
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic