[v3] c++0x includes
Peter Dimov
pdimov@mmltd.net
Sun Mar 11 15:23:00 GMT 2007
Gabriel Dos Reis wrote:
> "Peter Dimov" <pdimov@mmltd.net> writes:
>
>> Doug Gregor wrote:
>>
>>> What we need is for the C++ committee to define a new value of
>>> __cplusplus for C++0x, so C libraries can start doing the right
>>> thing...
>>
>> I think that you can detect C++0x without knowing the exact value by
>> using #if __cplusplus > 199711L.
>
> Well, that may actually be C++03 without C++0x. :-/
I guess it could be, depending on the compiler... my copy of C++03 still
says 199711L in [cpp.predefined], though. One can always play safe and check
against 200703L.
More information about the Libstdc++
mailing list