id summary reporter owner description type status milestone component version severity resolution keywords cc 10488 Compilation of serializing shared_ptr fails visa.jokelainen@… Robert Ramey "Compilation of code that includes serialization of shared_ptr fails with Boost 1.56.0 with error: {{{ /usr/include/boost/smart_ptr/shared_ptr.hpp:323:25: note: no known conversion for argument 1 from ‘const boost::shared_ptr’ to ‘const boost::shared_ptr&’ }}} This works with Boost 1.55.0 and earlier versions. Tested on Arch Linux with clang 3.4.2 and g++ 4.9.1. Here's a little test to replicate the problem: {{{ #include #include #include #include class TestClass { public: TestClass(int i) : _i(i) {} private: friend class boost::serialization::access; TestClass() {} template void serialize(Archive & ar, const unsigned int version) { ar & _i; } int _i; }; typedef boost::shared_ptr ClassPtr; typedef boost::shared_ptr ConstClassPtr; int main(int argc, char* argv[]) { ClassPtr ptr = boost::make_shared(13); ConstClassPtr cPtr = boost::make_shared(42); { std::ifstream ifs(""test""); boost::archive::text_iarchive ia(ifs); ia >> ptr; // This works ia >> cPtr; // This doesn't } return 0; } }}} " Bugs closed To Be Determined serialization Boost 1.56.0 Regression fixed shared_ptr serialization const compilation boost@… mika.fischer@…