17 Jan
2013
17 Jan
'13
7:12 p.m.
Hi everyone, has any progress has been made on a general solution for this problem? Given classes like these, struct base { template<typename Archive> void serialize(Archive& ar, unsigned version) { } virtual ~base() = default; }; template<typename T> struct derived : base { template<typename Archive> void serialize(Archive& ar, unsigned version) { ar & data; } T data; }; is it possible to serialize the derived type (with T unknown) via a base pointer? Sticking a call to register_type<derived> in derived::serialize doesn't seem to do it.