Search code examples
c++boostshared-ptr

need single header file for boost::shared_ptr


Boost::shared_ptr is really great. But using it you need lots of header file. Is thare any single header file available that will provide shared_ptr functionality?

somewhat urgent.


Solution

  • gcc -E boost/shared_ptr.hpp -o my_shared_ptr.hpp

    Using the preprocessor, you generate a single header containing everything you need.