Serialization : Deserializing members not present in archive

Hey, I have a class with a few data members that is serializable. Note that, I already have an archive ( test.txt ). Now, I want to serialize a couple more members. I went ahead and added the new members to my serialize functions. When I read from the archive ( test.txt ) , I get an exception. This is understandable, because the archive doesn't have the new members that I'm trying to read out. My question is, is there a way to check for the existence of a member before deserializing an object from the archive ? Thanks in advance, Sandeep.

This is contemplated through the usage of class versioning. See documentation. Robert Ramey "Booster Booster" <boost.newbie@gmail.com> wrote in message news:a4a79aba0701041113y5bbf54bfv82d8e86f0f9cd3af@mail.gmail.com... Hey, I have a class with a few data members that is serializable. Note that, I already have an archive ( test.txt ). Now, I want to serialize a couple more members. I went ahead and added the new members to my serialize functions. When I read from the archive ( test.txt ) , I get an exception. This is understandable, because the archive doesn't have the new members that I'm trying to read out. My question is, is there a way to check for the existence of a member before deserializing an object from the archive ? Thanks in advance, Sandeep. ------------------------------------------------------------------------------ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Booster Booster
-
Robert Ramey