if (not(0)) std::cout("ok")
“not” is not implemented???
if (not(0)) std::cout("ok")
“not” is not implemented???
Hi,
Indeed the ‘english’ version of the operators (and, not, etc…) are not supported in CINT.
Cheers,
Philippe.
[quote=“wiso”]
if (not(0)) std::cout("ok")
“not” is not implemented???[/quote]
I’m a little confused. As far as I know, “not” isn’t standard C++, so why would one expect it to be implemented?
Cheers,
Charles
[quote=“cplager”][quote=“wiso”]
if (not(0)) std::cout("ok")
“not” is not implemented???[/quote]
I’m a little confused. As far as I know, “not” isn’t standard C++, so why would one expect it to be implemented?
Cheers,
Charles[/quote]
I don’t know exactly, but:
g++ -ansi -pedantic
or
g++ -std=c89 -pedantic
compile
Ummm… Yes… So, yes, I was forwarded the following after my post:
cppreference.com/wiki/keywords/start
and cppreference.com/wiki/alternative_operators
which seem to suggest the are (kind-of-sort-of) standard (but only with either special include files or command line options). So I withdraw my question since it was just me.
Cheers,
Charles