operator overloading

type operator * (int x) const;

now the const word here is telling about whom????

x is const OR the driving object is const ????
The member variables of the object where the operator is overloaded are const in the operator* function scope. If it's a non-member function that's wrong.



Asus.
Topic archived. No new replies allowed.