--- Additional Comments From bangerth at ices dot utexas dot edu
2005-06-04 18:48 ---
Subject: RE: Nested class has access to Nestee's private
member functions
> I read suggestions that this should be changed in the next standard, but I
> don't think it's changed yet. Therefore, the
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-04
17:38 ---
Mark as a dup of bug 359.
This was DR 45.
*** This bug has been marked as a duplicate of 359 ***
--
What|Removed |Added
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-04
17:37 ---
Reopening for a second to ...
--
What|Removed |Added
Status|RESOLVED
--- Additional Comments From mhcox at bluezoosoftware dot com 2005-06-04
17:20 ---
>From my copy of the C++ standard (ISO/IEC 14882:1998(E)) [class.access.net]
11.8.1:
The members of a nested class have no special access to members of an
enclosing class, nor to classes or
nticipation of the next standard's changes).
Mike
-Original Message-
From: bangerth at dealii dot org [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 11:46 AM
To: [EMAIL PROTECTED]
Subject: [Bug c++/21901] Nested class has access to Nestee's private member
functions
--- Additional Comments From bangerth at dealii dot org 2005-06-03 17:46
---
Nested class, like all other members of a class, have access to private
and protected members. That's what the standard says.
W.
--
What|Removed |Added
-
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-03
15:29 ---
Why do you think this is invalid code and should be rejected?
This is accepted by Comeau's C++ compiler too.
I don't have the standard right in the front of me right now but I think this
is valid code.
--