3 ms·
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 year
by clappski 5y 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!
- gpderetta 5y agoNon-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.
- astrange 5y agoYes, 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.