Feature request #3919
'and' is undefined keyword in C++
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||13943|
I noticed that in file
is used not real C++ keyword: and
In C++ it's reserved word but it's not supported - should not be used.
Here is what C++ Standard states in 2.11 Keywords chapter:
Furthermore, the alternative representations shown in
Table 4 for certain operators and punctuators (2.5) are
reserved and shall not be used otherwise:
Table 4: alternative representations
and and_eq bitand bitor compl not
not_eq or or_eq xor xor_eq
VC++ does not support it. If GCC does, then please use -ansi switch (-pedantic is
also recommended) to exclude such not portable extensions.