Possible Duplicate:
Deprecation of the static keyword… no more?
In C++2003, namespace-static
is deprecated:
[C++03: 7.3.1.1/2]:
The use of thestatic
keyword is deprecated when declaring objects in a namespace scope (see annex D); the unnamed-namespace provides a superior alternative.
I can't find where any such clause exists in C++2011 (suggesting undeprecation), and 7.1.1
doesn't seem to prohibit namespace-static
(and if it had, this would suggest that the feature had been finally removed from the language); however, neither case is listed in C.2
(which itemises significant differences between 2003 and 2011).
Was namespace-static
undeprecated or not?