
Same error, no serialization function defined on the class. Jared
why not?
Robert Ramey
"Jared McIntyre" <jmcintyre@dfsoftware.com> wrote in message news:a06200700bdd6457f4a05@[192.168.1.103]...
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 _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost