Title
Undeprecating static
Status
c++11
Section
9.8.2.2 [namespace.unnamed]
Submitter
Ville Voutilainen

Created on 2009-12-09.00:00:00 last changed 96 months ago

Messages

Date: 2010-11-15.00:00:00

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

Date: 2010-08-15.00:00:00

Proposed resolution (August, 2010):

  1. Delete 9.8.2.2 [namespace.unnamed] paragraph 2:

  2. The use of the static keyword is deprecated when declaring variables in a namespace scope (see annex Annex D [depr]); the unnamed-namespace provides a superior alternative.
  3. Delete _N3225_.D.2 [depr.static]:

  4. D.2 static keyword[depr.static]

    The use of the static keyword is deprecated when declaring objects in namespace scope (see 6.4.5 [basic.scope.namespace]).

Date: 2010-08-23.00:00:00
N3092 comment FIĀ 6

Although 9.8.2.2 [namespace.unnamed] states that the use of the static keyword for declaring variables in namespace scope is deprecated because the unnamed namespace provides a superior alternative, it is unlikely that the feature will be removed at any point in the foreseeable future, especially in light of C compatibility concerns. The Committee should consider removing the deprecation.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: dr -> fdis
2010-11-29 00:00:00adminsetmessages: + msg3167
2010-11-29 00:00:00adminsetstatus: ready -> dr
2010-08-23 00:00:00adminsetmessages: + msg2782
2010-08-23 00:00:00adminsetstatus: open -> ready
2009-12-09 00:00:00admincreate