Boost logo

Boost :

Subject: Re: [boost] [serialization] Custom archive and arrays
From: Bjorn Reese (breese_at_[hidden])
Date: 2016-01-22 12:55:49

On 01/22/2016 05:54 PM, Robert Ramey wrote:
> On 1/22/16 2:40 AM, Bjorn Reese wrote:
> I presume we're talking about C++ intrinsic array rather than std::array.


>> My current workaround is to add an overload for arrays to my custom
>> archive, i.e.
>> template <typename T, std::size_t N>
>> void save_override(const T (&data)[N]);
> What is the problem with using this or some similar overload?

Well, since I have found a workaround there is no problem per se.

My concern is more that Boost.Serialization imposes a serialization
sequence that is invalid for certain encoding formats. This means that
we have to by-pass Boost.Serialization for the serialization of arrays.

Boost list run by bdawes at, gregod at, cpdaniel at, john at