August 2017
Intermediate to advanced
438 pages
14h 19m
English
The fourth solution is the most conservative, because prior to Boost 1.53 the functionality of the second solution was not implemented in shared_ptr. The first and second solutions are the fastest ones as they use only one memory allocation call. The third solution can be used with older versions of Boost and with C++11 standard library's std::shared_ptr<> (just don't forget to change boost::checked_array_deleter<T>() to std::default_delete<T[]>()).
Beware! C++11 and C++14 versions of std::shared_ptr cannot work ...
Read now
Unlock full access