Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-12-03 12:04:16


why not?

Robert Ramey

"Jared McIntyre" <jmcintyre_at_[hidden]> 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
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk