Just reviewed the tutorial and i got the following information :
"STL Collections
The serialization library contains code for serialization of all STL classes. Hence, the reformulation below will also work as one would expect."
Is this tutorial is correct one, which i may need to read & write STL classes in file ? If yes, this syntax is a bit complex for me? Can any one rebuild it in simple & understandable form?Code:#include <boost/serialization/list.hpp> class bus_route { friend class boost::serialization::access; std::list<bus_stop *> stops; template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & stops; } public: bus_route(){} };
Regards
Basanta




Reply With Quote