Hacker News new | ask | show | jobs
by areyousure 1796 days ago
While it is true that you can use `and` in C++11, that's a bit of an understatement: these keywords have in fact been present since the very first ISO C++ standard C++98!
2 comments

Note however that MSVC does not support these by default. You need to #include <ciso646> before their use, or you need to pass the `/permissive-` compiler option.
You should be using /permissive- anyway unless you are dealing with a legacy codebase that breaks with that.
TIL! Always thought this was a C++11 feature. Then this argument against the 'new' keywords is even weaker.