title: Restrict C++ Template Parameter to Subclass
body: <p>How can I force a template parameter <code>T</code> to be a subclass of a specific class <code>Baseclass</code>?
  Something like this:</p>
  
  <pre><code>template &lt;class T : Baseclass&gt; void function(){
      T *object = new T();
  
  }
  </code></pre>