Need a separate header file for boost :: shared_ptr

Boost :: shared_ptr is really wonderful. But using it, you need a lot of header files. Is any single header file available that will provide shared_ptr functions?

somewhat urgent.

+5
source share
2 answers

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

Using a preprocessor, you create one header containing everything you need.

+4
source

If you want to avoid all boost header files, although you only use shared_ptr, you can extract shared_ptr using BCP:

http://www.boost.org/doc/libs/1_36_0/tools/bcp/bcp.html

, , - .

+11

All Articles