In answers to The written versions of the logical operators, it is indicated that the keywords and
, or
, and not
are, in fact, keywords that are defined as part of the C++ language (but without specifically stating C++11).
In Visual Studio 2013, I am attempting to build pre-existing code (known to build on Linux) which uses the or
keyword (if (A_ or B_) {...}
, where A_
and B_
are properly defined), and the following compiler error is generated:
error C2065: 'or' : undeclared identifier
From Microsoft's (apparently) official list of C++ keywords for Visual Studio 2013, or
is not listed.
I would like confirmation that the and
, or
, and not
keywords are not supported in Visual Studio 2013.
(The alternative is that I am missing either an #include
file, or a required compiler setting.)