
27 Jun
2005
27 Jun
'05
3:12 p.m.
martin.ecker@tab.at 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