making destructor virtual

This commit is contained in:
Dennis Luxen 2011-08-06 21:13:34 +00:00
parent 4919f72060
commit b5813ae18b

View File

@ -16,7 +16,7 @@
class HelloWorldPlugin : public BasePlugin {
public:
HelloWorldPlugin() {}
~HelloWorldPlugin() { /*std::cout << GetDescriptor() << " destructor" << std::endl;*/ }
virtual ~HelloWorldPlugin() { /*std::cout << GetDescriptor() << " destructor" << std::endl;*/ }
std::string GetDescriptor() { return std::string("hello"); }
void HandleRequest(RouteParameters routeParameters, http::Reply& reply) {
std::cout << "[hello world]: runnning handler" << std::endl;