Re: Prohibit enum <-> int mixup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Wakely <jwakely.gcc@xxxxxxxxx> writes:

> On 30 January 2011 20:32, Enrico Weigelt wrote:
>>
>> I'll have to add --std=c++0x parameter - does that have any other
>> side effects I should be aware of ?
>
> -std=c++0x enables lots of things, but if you don't use e.g. variadic
> templates or the decltype keyword you shouldn't notice.  The only
> thing I can think of affecting valid code is changing the meaning of
> the 'auto' keyword, which noone sensible uses anyway.

Using -std=c++0x will cause libstdc++ to build in C++0x mode, which last
time I checked was not strictly ABI compatible with libstdc++ not built
in C++0x mode.  So if you link with a dynamic libstdc++.so, you may get
in trouble in some complex scenarios.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux