I apologize for not adding enough code - I didn't realize the line wouldn't be enough in this instance. However, silly me missed the comment above the code anyway that says clearly:
// NOTE: When using the /permissive- compiler switch the below structure
// will not compile due to the case(RTOr) member 'or'. If compiling with the /permissive-
// switch please also define QUERY_H_RESTRICTION_PERMISSIVE
Thank you Furry Guy and Ganado for posting despite my thinking errors on the 29th!!!