Should I switch from using boost::shared_ptr to std::shared_ptr?

后端 未结 8 1854
一生所求
一生所求 2020-12-23 02:06

I would like to enable support for C++0x in GCC with -std=c++0x. I don\'t absolutely necessarily need any of the currently supported C++11 features in GCC 4.5 (

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-23 02:42

    You should always use std::shared_ptr wherever possible, if it's available, instead of boost. This is basically because all new interfaces which use shared_ptr will use the Standard shared ptr.

提交回复
热议问题