C++ pointers that are released upon going out of scope
gamedev.net
In a code that Im working with, there are numerous calls to malloc (it was a C code). Is there a way in C++ to make the memory be automatically released when it goes out of scope. A smart pointer?
0 Kommentare ·0 Anteile ·40 Ansichten