Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using boost shared_ptr

Tags:

c++

boost

I have to use a smart pointer and I found "shared_ptr" from boost looks good. I downloaded the boost library and I can see many files and libraries there. Is there any way to use only the shared_ptr ?

like image 519
Navaneeth K N Avatar asked Jan 07 '09 13:01

Navaneeth K N


1 Answers

boost bcp is your friend. It allows extracting individual boost libraries out of its tree. I used it with success in the past. shared_ptr consists only of headers, so that will be especially good for you.

like image 83
Johannes Schaub - litb Avatar answered Oct 16 '22 04:10

Johannes Schaub - litb