How does C++ go about implicitly casting when it comes to friend function?
This is my friend function implementation :
bool operator==(Point& x, Point& y) {
return x.x == y.x;
}
In my class I have a simple converstion constructor :
Point(int x=5) : x(x){}
Why does the following code not implicitly convert int into my class Point ?
cout << (p == 5) << endl;
cout << (5 == p) << endl;