Open sjulti opened 7 months ago
Interesting, I will look into that. In the meantime I recommend to try and add a requires clause for each function for archive kind, or go for one function with if constexpr, I believe I had an example in the readme for it.
I am serializing
std::chrono::time_point
and use theserialize
for that purpose:I figured that for writing data, I need to provide overloads for
const
objects. However, when calling from a function with a non-const object, it will instead call the de-serialization overload:As a work-around, I can use
std::as_const(obj)
when passing the object to ZPP_bits. It would be nice to receive an error here instead.