|
Boost Users : |
Subject: Re: [Boost-users] splitting non intrusive serialization into save/load
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-04 11:46:56
AMDG
Babineau, Denis wrote:
> error C2270: 'save' : modifiers not allowed on nonmember functions
>
> <snip>
>
> namespace boost { namespace serialization {
> template <class Archive>
> void save(Archive & ar, MyClass & c, const unsigned int version) const;
>
void save(Archive & ar, const MyClass & c, const unsigned int version);
> template <class Archive>
> void serialize(Archive & ar, MyClass & c, const unsigned int version)
> {
> boost::serialization::split_member(ar, c, version);
> }
> }}
Use split_free instead of split_member.
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net