[v3] c++0x includes

Doug Gregor doug.gregor@gmail.com
Sun Mar 11 15:27:00 GMT 2007


On 3/11/07, Peter Dimov <pdimov@mmltd.net> wrote:
> 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.

Gaa! That sets a very scary precedent, I think. It at least invites us
to be clever:

#if __cplusplus > 200703L
// add rvalue reference support
  #if __cplusplus > 200708L
  // add decltype support
    #if __cplusplus > 200711L
    // add concepts support
    #endif
  #endif
#endif

:)

  Cheers,
  Doug



More information about the Libstdc++ mailing list