This is the first time I've tried overloading in c++ (Still learning, of course) and I'm not quite sure why this code is erroring?
bool operator<= (Vector3 v) { if (x <= v.x) && (y <= v.y) && (z <= v.z) { return true; } } The errors are
19|error: expected identifier before '(' token|
and
19|error: expected ';' before '(' token|
I searched for both of these and found that the first one is for code outside of a function (which it's not), but didn't find anything on the second.
Thanks for reading