I know that the override
contextual keyword was introduced to write safer code (by checking for a virtual
function with the same signature) but I don't feel good about it, because it seems to be redundant for me to write override
every time I want to override a virtual
function.
Is it a bad practice to not use override
contextual keyword for 99% of cases? Why/when should I have to use it (a compiler warning is not enough when we are hiding a virtual function mistakenly)?
EDIT: In other words; what is the advantage of using the override
contextual keyword in C++11 while we always had a compiler warning if we were hiding a virtual function mistakenly in C++03 (without using override
contextual keyword)?