What\'s the equivalent to the following:
std::vector vec; vec.push_back(NULL);
when dealing with boost::shared_ptr
boost::shared_ptr
In C++0x, you can simply convert from nullptr to std::shared_ptr:
nullptr
std::shared_ptr
std::vector< boost::shared_ptr > vec; vec.push_back(nullptr);