Namespaces
Variants
Views
Actions

Talk:cpp/language/storage duration

From cppreference.com

Why is register depricated?? 121.242.176.7 07:03, 7 November 2012 (PST)

It is deprecated in the current C++ standard, per paragraphs §7.1.1[dcl.stc]/3 and §D.2[depr.register]. As for why, it's likely because most (all?) existing C++ compilers completely ignore this keyword, and have been for many years. Or, to quote Herb Sutter, It's exactly as meaningful as whitespace. (note that it's not so in the C programming language, where register changes the program semantics) --Cubbi 07:37, 7 November 2012 (PST)

In "external linkage", at the bullet "variables and functions, not listed above (that is, not declared static, and const-qualified but not extern)" the text in the parentheses looks a bit ambiguous. Maybe I'm wrong, but was it meant to be "(that is, not declared static, and non const-qualified)" or something along these lines? --Blastofftek (talk) 02:54, 26 December 2014 (PST)

attempted rewording, better? --Cubbi (talk) 06:18, 26 December 2014 (PST)
Yes, it's perfectly clear now. Thanks --Blastofftek (talk) 06:08, 30 December 2014 (PST)