Preventing a static method in base class from being called through derived class?
Advertisements I have a Base class, and a Derived template that inherits from it. Both of these define a static method calculateSize() but with different method signatures. (Both are also instanced as objects; Base isn’t just an interface.) class Base{ public: static size_t calculateSize(size_t payload); }; template<typename T> class Derived : public Base{ public: //… Read More Preventing a static method in base class from being called through derived class?