How can boost::serialization be used with std::shared_ptr from C++11?

后端 未结 7 1873
礼貌的吻别
礼貌的吻别 2020-12-08 20:23

I know that there is a Boost module for serialization of boost::shared_ptr, but I cannot find anything for std::shared_ptr.

Also, I don\'t know how to implement it e

相关标签:
7条回答
  • 2020-12-08 21:01

    As of Boost 1.56, the serialization library has built-in support for std::shared_ptr. You do not need to implement your own serialization helper functions if you can use a more recent version of the library.

    0 讨论(0)
提交回复
热议问题