What are the differences between VS2010's std::shared_ptr
and boost::shared_ptr
?
Are the implementations almost the same? Or are there significant differences?
What is the most efficient/optimized?
Thanks.
VS2010's shared_ptr
is implementation conforming (or, at least, trying to conform) C++11 standard.
boost::shared_ptr
on the other hand, was developed way earlier, and as part of boost rather than C++ standard library. I believe both are efficient enough for production use, but using boost forces you to... use boost ;). Which in some cases is quite unacceptable.