These are chat archives for ChaiScript/ChaiScript

Feb 2018
Feb 24 2018 13:46
What's the current situation with defining operator == (&other) and != (&other) ? If I define one ( say oper ==), can C++ give me the other one ( oper !=) automatically?
I saw some talk on stackoverflow about defaulted comparison operators
Jason Turner
Feb 24 2018 14:51
That's a C++20 feature which is also known as the "spaceship operator' where you define "<=>". Only one compiler has support for this so far
it's possible I could add support for something like it in chaiscript
Feb 24 2018 15:46
Very cool, thanks
I was thinking though the C++ compiler could take != or == and automatically generate a negated version of the provided