Hacker News new | ask | show | jobs
by clappski 1820 days ago
Pretty sure that raw new has been a smell since C++11, 10 years ago, since the introduction of smart pointers that aren't terrible. Maybe longer than a few years since last time you looked at it!
1 comments

Non-terrible smart pointers existed well before that (no, auto_ptr doesn't count), so naked new and delete have been code smell for a while.
Yes, one time I looked and people were saying new was bad and to use auto_ptr, and then the next time I looked everyone was saying that had never happened.