|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-05-23 23:17:01
Richard Howells wrote:
>>> One tip --> in 1.33 you will need to make the date const or oa << d
>>> will fail.
>>> Serialization is now enforcing this previously documented part of
>>> the interface...
>
>>> So
>
>>> date d(2004, Apr, 5);
>
>>> needs to be
>
>>> const date d(2004, Apr, 5);
>
> Is that for real? I admit I have not used this library so maybe I
> should be ignored, but what is the reasoning for only being able to
> serialize consts? At the moment it does not sound useful.
>
> - R
It doesn't mean only const data can serialized. It just means that ways of
using the library can lead to problems and this helps trap them. You'll
have to read the thread. I'll try to add a more extensive explanation to
the documentation.
Robert Ramey
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