title: How to serialize derived template classes with Boost.serialize?
body: <p>I'd like to serialize/unserialize following classes:</p>
  
  <pre><code>class Feature{
  ...
  virtual string str()=0;
  };
  
  template&lt;typename T&gt;
  class GenericFeature : public Feature{
  T value;
  ...
  virtual string str();
  };
  </code></pre>
  
  <p>I read boost.serialize docs and the sayed that you must register classes.
   I can register them in constructor. But there will be problems with loading, as registration will be dynamic, not static(As I understood, you must register classes prior to serialization/deserialization).</p>
  
  <p>How to save/load these type of classes?</p>