开发者

Rationale of un-deprecating static keyword for nonmember functions [duplicate]

开发者 https://www.devze.com 2023-02-16 14:32 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Deprecation of the static keyword… no more ?
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Deprecation of the static keyword… no more ?

I am asking this question because of开发者_如何学C a comment on an answer of mine which states that the use of static keyword on freestanding (nonmember) functions has been un-deprecated in C++0x.

Since I have no reason to doubt the above statement, I am asking this:

Can anybody please shed light on the underlying rationale of un-deprecating the use of static keyword in that context? (I mean, in C++03 the standard states that anonymous namespaces provide a superior alternative. What's changed?)

Thanks in advance


I found this in the CWG issues list:

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_closed.html#174

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号