operator overloading problem

hi guys. I am working on class operator overloading, here I got problem with comparison operators. I am using visual studio 10 and it shows the curly underline under operator in the function definition. I have posted my code. I will really appreciated for your help.
code:

class Fractions{
public:
bool operator==(const Fractions &secFraction);
private:
int numerator;
int denominator;
};

bool Fractions::operator==(const Fractions &other)const
{
if(numerator == other.numerator && denominator == other.denominator)
return true;
else
return false;
}
closed account (S6k9GNh0)
What seems to be the problem here?
(I can't help if I don't know the problem)
the const keyword at the end of the function make a difference.
thank you guestgulkan it works. i really appreciated.
Topic archived. No new replies allowed.