|
Boost Users : |
Subject: Re: [Boost-users] boost serialization + boost variant + boost blank
From: Andreas M. Iwanowski (namezero_at_[hidden])
Date: 2015-02-01 15:07:55
Check out non-intrusive serialization:
http://www.boost.org/doc/libs/1_57_0/libs/serialization/doc/tutorial.html#nonintrusiveversion
Maybe that will work for you without modifying the class.
Mit freundlichen GrüÃen / With best regards
Andreas Iwanowski - IT Administrator / Software Developer
www.awato.de | namezero_at_[hidden]
T: +49 (0)2133 26031 55 | F: +49 (0)2133 26031 01
awato Software GmbH | Salm Reifferscheidt Allee 37 | D-41540 Dormagen
avisor-Support | T: +49 (0)621 6094 043 | F: +49 (0)621 6071 447
Geschäftsführer: Ursula Iwanowski | HRB: Neuss 7208 | VAT-no.: DE 122796158
-----Original Message-----
From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Merrill Cornish
Sent: Sunday, 01 February, 2015 18:41
To: boost-users_at_[hidden]
Subject: [Boost-users] boost serialization + boost variant + boost blank
I'm running Boost 1.57.0 using serialization, variant, and boost::blank
with that variant.
I found that when compiled, serialization complains that blank does not
contain a serialize method, which is true.
I made a copy of blank.hpp, called it blank.h, and added
template< class Archive >
void serialize(Archive& ar, const unsigned int version) {}
to the body of struct blank. That made the compiler happy, but is it a
fix in general?
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
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