
OK, I've looked at this more carefully and see no obvious fix.
My original intention was that serialization of a const object would
generate a compile error unless explicitly overridden. I your case this
isn't easy as the override would be inside the implementation of
serialization of collections. Fixing it here would conflict with my
original intent and permit un noticed alteration of const members.
I'll have to think about this some more.
As to your particular case, I did try variations on:
template<class Archive>
inline void load(
Archive & ar,
std::vector
Dear Robert
I could manually write the serialization code for my vector
type but I hoped I could use the built-in vector serialization templates in vector.hpp To be clear I copy here the piece of code I am talking about