De-Serializing an STL map class member
问题 I am new to boost & boost serialization. I am trying to de-serialize a STL map class member. Here is the code : ... class Face { friend std::ostream & operator<<(std::ostream &os, const Face &mf); friend class boost::serialization::access; template<class Archive> void serialize(Archive & ar, const unsigned int /* file_version */){ ar & mFaceID; } public: size_t mFaceID; /*!< an integer value represents the Face Identification number */ void setFaceId(const size_t& faceID) { mFaceID = faceID;