August 2017
Intermediate to advanced
438 pages
14h 19m
English
All the boost::*_pointer_cast functions can work with smart pointers from the standard library and C pointers if you include <boost/pointer_cast.hpp>. In C++11, the standard library has std::static_pointer_cast, std::dynamic_pointer_cast, and std::const_pointer_cast defined in the <memory> header, however, it is only for std::shared_ptr. The C++17 standard library has std::reinterpret_pointer_cast, but it is only for std::shared_ptr.
Read now
Unlock full access