cereal
cereal copied to clipboard
CEREAL_SPECIALIZE_FOR_ALL_ARCHIVES for templated classes
What's the procedure for specialising access for template classes/structs? CEREAL_SPECIALIZE_FOR_ALL_ARCHIVES
and the cereal::specialize struct don't seem to support template types at first glance.
template<typename T>
struct Test { T t; };
CEREAL_SPECIALIZE_FOR_ALL_ARCHIVES (Test) // compile error
CEREAL_SPECIALIZE_FOR_ALL_ARCHIVES (Test<int>) // works but I won't know all possible templated types