make destructor public to avoid compiler warning.
authormlacage@nef.inria.fr
Tue, 03 Oct 2006 12:20:13 +0200
changeset 120 0747c110cc88
parent 119 07ec9baf54a7
child 121 f8bc1a370b82
make destructor public to avoid compiler warning.
src/simulator/simulator.cc
--- a/src/simulator/simulator.cc	Tue Oct 03 12:18:53 2006 +0200
+++ b/src/simulator/simulator.cc	Tue Oct 03 12:20:13 2006 +0200
@@ -352,12 +352,12 @@
     	EventFunctionImpl0 (F function) 
     		: m_function (function)
     	{}
+    	virtual ~EventFunctionImpl0 () {}
     protected:
     	virtual void notify (void) { 
     		(*m_function) (); 
             }
     private:
-    	virtual ~EventFunctionImpl0 () {}
     	F m_function;
     } *ev = new EventFunctionImpl0 (f);
     return schedule (time, ev);