[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GCC -- Warning when a non-virtual function is overridden?
From: |
Ignoramus534 |
Subject: |
GCC -- Warning when a non-virtual function is overridden? |
Date: |
Thu, 12 Oct 2006 15:26:06 +0000 (UTC) |
User-agent: |
slrn/0.9.8.1pl1 (Linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GCC -- Warning when a non-virtual function is overridden?,
Ignoramus534 <=