Patrick Horgan
2011-05-25 06:44:05 UTC
I'm using the following in a header that uses typeof and needs to build
in code that builds with -std=c++0x or the default -std=c++98. Can I
leave it and forget it, or will eventually the compiler's use of c++0x
features no longer be experimental? How do I future proof it?
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#define typeof decltype
#endif
Patrick
in code that builds with -std=c++0x or the default -std=c++98. Can I
leave it and forget it, or will eventually the compiler's use of c++0x
features no longer be experimental? How do I future proof it?
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#define typeof decltype
#endif
Patrick