The following code gives error "binary '<': no operator found which takes a left-hand operand of type 'const point' (or there is no acceptable conversion)" .How can I fix it ?
#include <iostream>
#include <map>
using namespace std;
struct point
{
float x;
float y;
public:
void get() {
cin >> x >> y;
}
};
int main()
{
map<point, point> m;
point p1, p2;
p1.get();
p2.get();
m.insert(make_pair(p1,p2));
}