Boost logo

Boost Users :

Subject: Re: [Boost-users] Extend boost binary serialization with varints encoding
From: Robert Ramey (ramey_at_[hidden])
Date: 2015-11-22 16:11:08


On 11/22/15 7:13 AM, Bjorn Reese wrote:
> On 11/22/2015 12:35 PM, Ernest Zaslavsky wrote:
>> Is it feasible to provide boost binary serialization with varint
>> encoding capabilities?
>
> Yes, see:
>
> http://www.boost.org/boost/multiprecision/cpp_int/serialize.hpp

wow - I never saw that before - probably a good thing.

It also seems a lot more complex that I would think it should be.

seems to me using separate save/load functions would be more transparent
to the user of the code.

Also one could make things more obvious by specialization of the Archive
argument for binary_?archive.

I'm not sure about the trivial vs. non-trivial aspect. Still one variant
would seem better than 3 to me.

Maybe we're sometimes too clever.

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