Title
Access to protected nested type
Status
tc1
Section
14.4 [class.protected]
Submitter
Steve Adamczyk

Created on 1999-08-26.00:00:00 last changed 208 months ago

Messages

Date: 1999-10-15.00:00:00

Proposed resolution (10/99): change "protected nonstatic member" in the above to "protected nonstatic member function or protected nonstatic data member" to make the intent clear.

Date: 2003-04-25.00:00:00

14.4 [class.protected] paragraph 1 begins:

When a friend or a member function of a derived class references a protected nonstatic member of a base class, an access check applies in addition to those described earlier in clause 14 [class.access] .

This was intended to refer to nonstatic member functions and nonstatic data members. However, a protected nested type declared in a base class is, by some definition of the word, a "nonstatic" member, and therefore subject to this additional access check.

History
Date User Action Args
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-02-23 00:00:00adminsetmessages: + msg300
2000-02-23 00:00:00adminsetstatus: open -> dr
1999-08-26 00:00:00admincreate