Are you looking for this
http://www.boost.org/doc/libs/1_55_0/libs/serialization/doc/index.html[
^]?
Haven't tried that myself, so I can't provide help beyond the content of this article. However, a word of warning: it seems the article refers to
boost::shared_ptr
, not
std::shared_ptr
! The two may not be the same!
Also the article makes a point to archive the reference counter - this may be useful if your goal is to save the internal state of your program, e. g. for debugging purposes. But I consider it a rather bad idea if you just want to save and restore arbitrary data structures!