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

Created on 1999-08-26.00:00:00 last changed 262 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: 2022-11-20.07:54:16

11.8.5 [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 11.8 [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.

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.

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