I just discovered that C++/CLI has a keyword that is not present (AFAIK) on standard C++: override.
I don’t know much about C++/CLI, so, can someone explain for which purpose is it included there, and if is it a desirable feature to be added to C++?
overrideis a special keyword extension from Microsoft that can be used in C++/CLI and Visual C++ implementations. It is similar to the@Overrideannotation in Java oroverridein C#, and provides better compile time checks just in case you didn’t override something you meant to.From the first link:
As of the C++11 standard, the
overridespecifier is now a standardized keyword. Support is still limited, and as per this page from Apache StdCxx,overrideis supported by GCC 4.7+, Intel C++ 12.0+, and Visual C++ 2012 (with pre-standardization support in Visual C++ 2005).