Movatterモバイル変換


[0]ホーム

URL:


Issue 161 - WG21 CWG Issues
Title
Access to protected nested type
Status
tc1
Section
11.8.5 [class.protected]
Submitter
Steve Adamczyk

Created on1999-08-26.00:00:00 last changed275 months ago

Messages

msg300 (view)
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.

msg145 (view)
Date: 2022-11-20.07:54:16

11.8.5 [class.protected] paragraph 1begins:

When a friend or a member function of a derived class references aprotected nonstatic member of a base class, an access check applies inaddition to those described earlier in11.8 [class.access].

This was intended to refer to nonstatic member functions andnonstatic data members. However, a protected nested type declaredin a base class is, bysome definition of the word, a "nonstatic" member, and therefore subjectto 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
DateUserActionArgs
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

[8]ページ先頭

©2009-2025 Movatter.jp