logoalt Hacker News

zabzonktoday at 9:38 AM3 repliesview on HN

Badly designed things get replaced. For example unique_ptr replaced auto_ptr. I'm not sure if the language standard actually supports the term "deprecation" though.

Edit: Also not sure what can possibly be downvoted here.


Replies

johannes1234321today at 12:31 PM

auto_ptr is an exception. Not the rule.

Regular expressions in C++ are an example "everybody" advises against using, but it's still there. vector<bool> will stay forever and so on.

bregmatoday at 1:02 PM

ISO/IEC 14882 contains many uses of the word "deprecation", including all the sections of Appendix D that explicitly lists all of the deprecated and removed features of the language and library.