|
Boost Users : |
Subject: Re: [Boost-users] [serialization] unwinding "stack" ofobjectduringloading
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-11-14 23:53:49
Igor R wrote:
> <...>
>> The real question is what kind of exception could occur which would
>> permit you to read more of the stream. if you can still read the
>> stream
>> then it's likely to be a programming error - e.g. save/load don't
>> match
>> and to my mind trying to recover from these situation either hides
>> an error or compounds the damage.
>
>
> The exception is "unregistered_class" - why is it thrown is another
> question, but unfortunately we couldn't find the answer so far.
> However, the inner object that fails to get red is not critical, so I
> wanted to try skipping it.
Ahhh - you can't find the error, so you think you can hide it?
I feel you're pain and this approach SEEMS easier but trust me it's not.
If you manage to hide it, it will just bite you in the future - and
it will be a lot harder to find - since you hide it.
Robert Ramey
> _______________________________________________
> 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