KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have some code that looks like: static const std::string and(" AND "); This causes an error in g++ like so: Row.cpp:140: error: expected unqualified-id before '&&' token so after cursing the fool that defined "and" as &&, I added #ifdef and #undef and #endif and now I get Row.cpp:9:8: error: "and" cannot be used as a macro name as it is an operator in C++ Which leads to my question of WHEN did "and" become an operator in C++? I can't find anything that indicates it is, except of course this message from g++
Tags (comma-separated)
Save Edits
Cancel