Using /Za seems to allow them without including iso646.h , to see it live , the following program throws an error without using /Za but it works fine:
int main() { int x = 1, y = 0 ; if (x and y) {
As ta.speot.is points out, / Za disables extensions, you must enable ios646.h otherwise:
In the / Ze section, you need to enable iso646.h if you want to use text forms of the following operators:
and it lists alternative tokens below.
Notice, I knew that I saw this before, I include a link to the error report for this in my answer to a similar question. Although this does not apply to the workaround noted above.
Note 2: Cheers and hth. - Alf indicates that there can be many undesirable consequences for disabling the extension, and therefore you might be better off including iso646.h .
Shafik yaghmour
source share