Common polymorphic base class
Created by: killoctal
Hi
Will it be possible to have a base class without template for being able to create a polymorphic instance ? For now it is impossible to do something like this :
Server* server = (ssl) ? new HttpsServer() : new HttpServer();
server->start(); // <- polymorphic call
For now I extracted a part of the code in a new class called HttpServerGeneric
but so I broke compatibility with your code...
Thanks Gabriel