-std=c++0x vs -std=gnu++0x

Lubos Lunak l.lunak at suse.cz
Fri Feb 24 05:07:20 PST 2012

On Thursday 23 of February 2012, Stephan Bergmann wrote:
> On 02/23/2012 05:08 PM, Lubos Lunak wrote:
> >   commit 437fe5a444411f68d1848c49121394f16f09611b made me notice that we
> > actually build with -std=c++0x and not -std=gnu++0x, which I think would
> > make more sense and be consistent with the case when we do not build in
> > C++0x mode.
> >
> >   If you look at the gcc manpage for the description of -std, you'll
> > notice that the C++ default is gnu++98, and c++98 is switched to also by
> > using -ansi. So if we default to c++0x, we pretty much default to the
> > more strict -ansi, only in C++0x mode. That should mean that gcc is more
> > strict than its default and e.g. some of its extensions are disabled.
> Argh, yes, failed to note that when I prepared the patch linked above.
> >   Any objections to switching to gnu++0x ?
> Sounds good.

 Pushed, and also reverted the commit above, since it shouldn't be needed now.

 Lubos Lunak
 l.lunak at suse.cz

More information about the LibreOffice mailing list