
Class path already has a member, path::string(), which in the current implementation returns a reference to m_path, and in any implementation I have change the derived class to:
class OSD : public boost::filesystem::path { private: friend class boost::serialization::access; friend std::ostream & operator<<(std::ostream &os, const OSD&); template<class Archive> void serialize(Archive &ar, const unsigned int version) { ar & boost::filesystem::path::string(); } }; And it works!! While I am using frequently boost::filesystem::path::string() , I did not even try to use it in that case before, because I was certain to get a compile error on the statement: ar & boost::filesystem::path::string(); as boost::filesystem::path::string() is a const member returning a const std::string& reference So, forget my request .. sorry... Francis
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost