overloading the == operator

Hello again, i'm having problems overloading the equals == with the following code, Can anybody help with where i'm going wrong??

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


class lineType {

public: 
	lineType operator ==(const lineType& line ) const;

private:
	double Xcoef,Ycoef,Zcoef;
	
};

Now the definition of the function....


bool lineType::operator==(const lineType& line ) const
{  

return ( line.Zcoef == line.Xcoef) ;

}


Check your function signatures.
okay, i see it .. must have stared at that for ages..!! ,thanks
Topic archived. No new replies allowed.