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

后端 未结 8 1834
一生所求
一生所求 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:38

    I suppose it depends how much you use boost. I personally only use it very sparingly (in fact the random number library, in a single project). I've recently started using -std=c++0x for my other projects, and I use the new std:: library features like shared_ptr in them. I like my projects to have the minimum of dependencies, so I'd rather be dependent on the compiler's standard library implementation than on boost.

    But I don't think there is a one-size-fits-all answer to this question.

提交回复
热议问题