< Talk:cpp‎ | io

[edit] Deprecation

How would we (and should we) mark that this is (deprecated) but only in (C++11) ? (C++11 refers to C as defined in ISO 9899:1999/Cor.3:2007(E), in which gets() is deprecated per 7.26.9/2) --Cubbi 14:53, 14 September 2011 (PDT)

IMO there's no need to elaborate in which revision of the standard a feature was deprecated. 'Deprecated', by definition, means 'will be removed in some future revision' so if gets is deprecated in C++11, it is effectively deprecated in any earlier standard also. I agree that simply putting (deprecated) feels strange though.P12 16:05, 14 September 2011 (PDT)
On second thought, plenty of other things that are only deprecated in C++11 (auto_ptr, old binders, dynamic throw specifications) are simply (deprecated), it's just that with gets it is not immediately obvious because it's not explicitly listed as such in Annex D, I think gets should be marked the same way as auto_ptr and others. --Cubbi