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

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

    If you are just building on the one platform that is fine (make the switch)
    (Note: You do have unit tests to validate backward compatibility don't you?)

    If you compile on multiple platforms is where it becomes a little more awkward as you need to validate that the features on g++ 4.5 are available on all the platforms you use (ie building for MAC/Linux the default Mac g++ compiler is still a couple of version's behind the default compilers on Linux).

提交回复
热议问题