Leigh said:
From the Draft:
"__cplusplus
The name __cplusplus is defined to the value 201103L when compiling a
C++ translation unit."
After checking a draft of the C++11 standard, I noticed that there is a note
referenced in the __cplusplus macro that states the following:
<quote>
155) It is intended that future versions of this standard will replace the
value of this macro with a greater value. Non-conforming
compilers should use a value with at most five decimal digits.
</quote>
The bit about "non-conforming compilers should use a value with at most five
decimal digits" isn't very clear to me. For example, consider a compiler
which complies with C++98 but only complies with a subset of C++11. In that
case, what value should be assigned to the __cplusplus macro?
Thanks for the help,
Rui Maciel