jeudi 30 novembre 2017

Smart pointers in C++ unique_ptr and shared_ptr

Why smart pointers(unique_ptr and shared_ptr) work only with user defined objects and not for example Direct3D objects... or any OpenGL objects. Am i doing something wrong or they are designed that way only.

Aucun commentaire:

Enregistrer un commentaire