[LLVMdev] [RFC] C++11: 'virtual' and 'override' (original) (raw)

Jasper Neumann jn at sirrida.de
Mon Mar 3 04:01:58 PST 2014


Hi folks!

[...] whether the 'virtual' keyword is also used when 'override' is used.

Related, should we require use of 'override' when methods override a base class method?

I vote to require "override" and to leave out "virtual".

By the way: This is what Delphi / Free Pascal do,

The Delphi interpretation of "virtual" is to establish a new "slot" (i.e. a new entry in the VMT) whereas "override" re-uses such a slot.

Jasper



More information about the llvm-dev mailing list