How can I create a std::set of structures?
问题 I need to create a stl::set of structures. Therefore, I wrote the following: stl::set <Point> mySet; // Point - name of the structure. Then I tried to add a structure instance to mySet as follows: Point myPoint; mySet.insert(myPoint); However, I get several compilation errors (error C2784, error C2676): 1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xfunctional(125): error C2784: bool std::operator <(const std::vector<_Ty,_Ax> &,const std::vector<_Ty,_Ax> &): failed to bring