How can I force a template parameter T to be a subclass of a specific class Baseclass? Something like this:
T
Baseclass
template
In this case you can do:
template void function(){ Baseclass *object = new T(); }
This will not compile if T is not a subclass of Baseclass (or T is Baseclass).