Exponent operator overloading Saturday 2nd January 2010 1 Comment
In C++ you can’t create new operators to overload, you can only overload the operators that are already defined in the language. Often, an exponentiation operator is cited as an example of a new operator that you might want to have, so something like this isn’t possible. #include <cmath> #include <cassert> int main() { Double [...]