Source

cy-cxxfwk / lib / lib.cxx

Diff from to

File lib/lib.cxx

 IAlg::IAlg()
 {}
 
+void
+IAlg::run()
+{
+  std::cout << ":: IAlg::run()...\n";
+  this->run_impl();
+}
+
 class Alg : public IAlg
 {
 public:
   Alg();
   ~Alg();
 
-  void run();
+  void run_impl();
 };
 
 Alg::Alg()
 }
 
 void
-Alg::run()
+Alg::run_impl()
 {
   std::cout << ":: Alg::run()...\n";
 }
 }
 
 void
-CyAlgBase::run()
+CyAlgBase::run_impl()
 {
   std::cout << "::CyAlgBase::run()...\n";
   if (this->obj && this->fct) {