|
Boost : |
Subject: Re: [boost] [review] The review of Boost.DoubleEnded starts today: September 21 - September 30
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-10-05 17:23:55
Den 05-10-2017 kl. 18:03 skrev degski via Boost:
> On 5 October 2017 at 18:37, Thorsten Ottosen via Boost <
> boost_at_[hidden]> wrote:
>
>> Secondly, I think we can see the current numbers as a best case of what is
>> possible with the extra functionality provided by DoubleEnded. There are
>> other serialization libs out there, and they should be able to benefit even
>> if there is no way to specialize for the binary case in Boost.Serialization.
>>
>
> I added devector to cereal, the file is attached and should be placed in
> the types sub-dir (of cereal). It's just a copy of the std::vector code,
> with the std::vector<bool> specialisation taken out. Not tested.
Cute. But would one not use std::is_trivially_copyable instead of
std::is_arithmetic?
And instead of resize, should you not call the version that avoids
double initialization?
kind regards
Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk