From: Jared McIntyre (jmcintyre_at_[hidden])
Date: 2004-12-03 11:33:10


>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