3 ms·
I haven't read TFA, but all of this stuff is commonly done with RAII in C++: http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization#Typical_uses ht
by njs12345 14y ago
I haven't read TFA, but all of this stuff is commonly done with RAII in C++: http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization#Typical_uses http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initial...
I think the main change C++11 makes in this area is the introduction of std::unique_ptr.