Den 05-10-2017 kl. 18:03 skrev degski via Boost:
On 5 October 2017 at 18:37, Thorsten Ottosen via Boost < boost@lists.boost.org> 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