[API] Some more cleanup ideas

Noel Grandin noel at peralex.com
Sun Dec 2 22:50:35 PST 2012

On 2012-12-02 22:03, Michael Stahl wrote:
> ... what i'd really like to have though is a C++ keyword plus "error 
> if there is not actually a base class method with that parameter 
> signature"

Here we go,
there is a new C++ 11 keyword, "override",

Which it looks like CLANG supports as of version 3.1, GCC supports it as 
4.7, and Visual Studio as of version 11.

CLANG even has a tool to automatically add the keyword to existing 
source code.

So perhaps we should define a new macro "SAL_OVERRIDE", which expands to 
the correct keyword on new enough versions of those compilers?

Regards, Noel Grandin

Disclaimer: http://www.peralex.com/disclaimer.html

More information about the LibreOffice mailing list