22 Nov
2015
22 Nov
'15
9:11 p.m.
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