vendredi 1 juillet 2016

Why use a raw pointer instead of a smart pointer?

With the introduction of "smart pointers" in C++11 (namely unique_ptr<T> and shared_ptr<T>), why use a raw pointer (T*)? Have raw pointers become obsolete?

Aucun commentaire:

Enregistrer un commentaire