What is the difference between Boost smart pointers and std smart pointers?

前端 未结 3 1232
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 09:24

So, I\'d like to use smart pointers instead of raw and almost every topic on SO says about Boost library. But std has such things as std::auto_ptr and std::sh

3条回答
  •  情书的邮戳
    2021-02-19 09:57

    Checkout the following stackoverflow questions:

    1. Difference between boost::shared_ptr and std::shared_ptr from the standard file
    2. Differences between different flavours of shared_ptr

提交回复
热议问题