[guid] - serialisation support

26 Jun
2006
26 Jun
'06
8:49 a.m.
Hello, wouldn't it be suitable to add serialasation support to boost::guid? regards, Oliver #include <boost/serialization/split_member.hpp> class BOOST_GUID_DECL guid : public boost::totally_ordered< guid > { private: ... friend class boost::serialization::access; template< class Archive > void save( Archive & ar, const unsigned int version) const { std::string str = to_string(); ar & str; } template< class Archive > void load( Archive & ar, const unsigned int version) { std::string str; ar & str; construct( str); } BOOST_SERIALIZATION_SPLIT_MEMBER(); ... };
6928
Age (days ago)
6928
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oliver.Kowalke@qimonda.com