The Gnu C++ compiler seems to define __cplusplus to be 1
__cplusplus
1
#include int main() { std::cout << __cplusplus <&
This was fixed about a month ago (for gcc 4.7.0). The bug report makes for an interesting read: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773