
3 Dec
2004
3 Dec
'04
4:33 p.m.
At 11:04 AM -0800 12/2/04, Robert Ramey wrote:
I would hope the following would do it
template<class Archive> void save(Archive & ar, const SWHandle & handle, const unsigned int version) { std::string strHelper( handle.toCharString() ); ar << make_nvp("swhandle_guid", strHelper); }
template<class Archive> void load(Archive & ar, SWHandle & handle, const unsigned int version) { std::string strHelper; ar >> make_nvp("swhandle_guid", strHelper); handle = strHelper.c_str(); }
BOOST_SERIALIZATION_SPLIT_FREE(SWHandle)
I didn't notice this at first since the deserialization compiler error was first, but with this code neither the deserialization nor the serialization will compile. Jared