- Title
- Undeprecating static
- Status
- c++11
- Section
- 9.9.2.2 [namespace.unnamed]
- Submitter
- Ville Voutilainen
Created on 2009-12-09.00:00:00 last changed 151 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): Delete 9.9.2.2 [namespace.unnamed] paragraph 2: Delete _N3225_.D.2 [depr.static]:
The use of the static keyword is deprecated when declaring
variables in a namespace scope (see annex Clause Annex D [depr]); the
unnamed-namespace provides a superior alternative.
D.2 static keyword[depr.static]The use of the static keyword is deprecated when
declaring objects in namespace scope (see 6.4.6 [basic.scope.namespace]).
Date: 2010-08-23.00:00:00
N3092 comment
FI 6 Although 9.9.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:00 | admin | set | status: fdis -> c++11 |
| 2011-04-10 00:00:00 | admin | set | status: dr -> fdis |
| 2010-11-29 00:00:00 | admin | set | messages: + msg3167 |
| 2010-11-29 00:00:00 | admin | set | status: ready -> dr |
| 2010-08-23 00:00:00 | admin | set | messages: + msg2782 |
| 2010-08-23 00:00:00 | admin | set | status: open -> ready |
| 2009-12-09 00:00:00 | admin | create | |