|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-06-27 10:12:55
martin.ecker_at_[hidden] wrote:
> Hi,
>
> Martin Slater wrote:
>>> ar << *this; // I can't imagine what this if for
>>
>> Is this going to break with the new release? I use this idiom quite
>> a lot and would hate to have to hack the boost source immediately
>> 1.33 is released.
>
> Same here. We use it for the same reasons. For example, we have some
> classes that expose a load and save member function, which internally
> uses Boost.Serialization, something like:
>
> void my_class:save()
> {
> my_archive ar(some_stream);
> ar << *this;
> }
>
Will it kill you if you have to change it to the following?
void my_class:save() const
{
my_archive ar(some_stream);
ar << *this;
}
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk