Call hidden (non virtual) method of derived class from base
问题 Is there a way (templates, macros anything else) to substitute a call to hidden_in_derived from common method at compile time , so that instance of Derived calls it's own hidden_in_derived ( without making hidden_in_derived virtual in Base) ? #include <iostream> class Base { public: void common() { // some calls to other methods hidden_in_derived(); // yet some calls to other methods } void hidden_in_derived() { std::cout << "A" << std::endl; } }; class Derived : public Base { public: void