Declare the required operator outside your class, like this:
int operator+(int i, oo& o) {
return o+i;
}
P.S.: I would have declared that second argument as const, but that would require your existing operator declarations to be const correct. It would also help if your operator implementations were consistent with expectations, i. e. they shouldn't modify the underlying object, unless you're overriding
operator+=()
.