title: How can I serialize an derived type pointer to interface type object in c++?
body: <p>Interface * base_ptr1 = new Derived1();</p>
  <p>Interface * base_ptr2 = new Derived2();</p>
  <p>In theory I should have serialize() method in all classes but my interface type class does not have data members, only abstract virtual methods.</p>