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

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

    I found std::shared_ptr to be faster than boost::shared_ptr. I did a test, you can review the code and see the pie chart results comparing boost, Qt, and std shared pointers.

    https://www.osletek.com...

提交回复
热议问题