C++ virtual override functions with same name

You cannot use qualified names there. I you write void Function() { ... } you are overriding both functions. Herb Sutter shows how it can be solved.

Another option is to rename those functions, because apparently they do something different (otherwise i don’t see the problem of overriding both with identical behavior).

Leave a Comment