Are ‘new’ and ‘delete’ getting deprecated in C++?
Neither snippet you show is idiomatic, modern C++ code. new and delete (and new[] and delete[]) are not deprecated in C++ and never will be. They are still the way to instantiate dynamically allocated objects. However, as you have to always match a new with a delete (and a new[] with a delete[]), they are … Read more