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

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -