Hi to all
I am new to the boost library, I downloaded it and I am doing some tests.
I was using MFC serialization.
I want to do something like this :
template
a) I don't see a serialize function for Action. Until this exists, it's not a serializble type. Hence it will not compile. b) The following is not symetrical and this is almost always a programmer error
oa << BOOST_SERIALIZATION_NVP(this); ... ia >> BOOST_SERIALIZATION_NVP(*this);
Robert Ramey
On 10/5/07, Robert Ramey
a) I don't see a serialize function for Action. Until this exists, it's not a serializble type. Hence it will not compile.
Ok thank you.
b) The following is not symetrical and this is almost always a programmer error
oa << BOOST_SERIALIZATION_NVP(this); ... ia >> BOOST_SERIALIZATION_NVP(*this);
I know that, but if I put oa << BOOST_SERIALIZATION_NVP(*this); I get a run time error, and when I put ia >> BOOST_SERIALIZATION_NVP(this) I get a run time error. If I do my save and load fucntion output my class, its ok and I can have symetrical Serialize. any Idea? _______________________________________________
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
at forum wrote:
On 10/5/07, Robert Ramey
wrote: a) I don't see a serialize function for Action. Until this exists, it's not a serializble type. Hence it will not compile.
Ok thank you.
b) The following is not symetrical and this is almost always a programmer error
oa << BOOST_SERIALIZATION_NVP(this); ... ia >> BOOST_SERIALIZATION_NVP(*this);
I know that, but if I put oa << BOOST_SERIALIZATION_NVP(*this); I get a run time error, and when I put ia >> BOOST_SERIALIZATION_NVP(this) I get a run time error.
If I do my save and load fucntion output my class, its ok and I can have symetrical Serialize.
any Idea?
BOOST_SERIALIZATION_NVP(this) is not suitable for "this"
I believe you want something like:
void Save(const char * filename, const CASetMemberCommand
participants (2)
-
at forum
-
Robert Ramey