This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115d. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-10-26


1144. Remove access declarations

Section: _N3225_.11.3  [class.access.dcl]     Status: C++11     Submitter: US     Date: 2010-08-03

[Voted into the WP at the November, 2010 meeting.]

N3092 comment US 56

Access declarations were deprecated in the 1998 standard and have no benefits over using-declarations. They should be removed in C++0x.

Proposed resolution (August, 2010):

  1. Delete _N3225_.11.3 [class.access.dcl].

  2. Delete _N3225_.D.3 [depr.access.dcl].

  3. Delete the following production from the grammar in 11.4 [class.mem] paragraph 1:

  4. Change 11.4 [class.mem] paragraph 1 as follows:
  5. ...Except when used to declare friends (11.4) or to introduce the name of a member of a base class into a derived class (7.3.3, 11.3), member-declarations declare members of the class...
  6. Delete 9.9 [namespace.udecl] paragraph 19:

  7. [Note: use of access-declarations (_N3225_.11.3 [class.access.dcl]) is deprecated; member using-declarations provide a better alternative. —end note]