Does g++ provide any sorts of warnings when a non-virtual function is
overridden? I know that it is a legal thing to do in C++, but for us
it is always a wrong thing to do. 

Example

class Parent {
public: 
        void f();
};

class Child : public Parent {
public:
        void f(); // I want a WARNING here!!!
};


thanks

i
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to