Использование static для объектов со внутренним связыванием больше не deprecated?
В новом стандарте отсутствует фраза:
The use of the static keyword is deprecated when declaring objects in a namespace scope (see annex D);
the unnamed-namespace provides a superior alternative.
Нашел на stackoverflow.com:
C++11 has removed the deprecation, so there's no longer any particular reason to prefer unnamed namespaces over static.
здесь
Здравствуйте, uzhas, Вы писали:
U>и там внутри еще можно покликать
Покликал внутри и нашел единственное более-менее авторитетное мнение, а именно мнение Danny Kalev:
Today it's hard to believe that these arguments won. File-scope static is officially deprecated in the C++98 and C++03 standards. It's still deprecated in the C++0x Working Draft. In retrospect, its deprecation was rash and unjustified. It didn't solve any problem because there wasn't any problem with static to begin with. Secondly, the "superior alternative" that the C++ standard prescribes, namely a nameless namespace, is cumbersome, unintuitive (how many programmers understand it?) and worst of all -- committee members are now realizing that linkage is important, especially after the recent changes regarding template arguments' linkage.
здесь
Не собираюсь отстаивать его мнение, тем более с раскоряченными пальцами; во-первых, потому-что уже читал кое-что этого автора, с чем остался не согласен, во-вторых, потому-что с раскоряченными пальцами вообще никакого мнения отстаивать не собираюсь. В отличие от.