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