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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -