c++ - Serialize derived classes with boost -
i have 3 classes defined as:
class base { public: int myvar1; int myvar2; ... }; class base2 : base { public: base2(...) : base(...) { } }; template<typename t> class derived { public: derived(...) : base2(...) { } };
i need serialize base class including derived classes boost send via sockets. how can it?
edit 1
std::auto_ptr<base2>(new derived(...))
Comments
Post a Comment