Skip to Content.
Sympa Menu

cgal-discuss - operator '<' overloaded

Subject: CGAL users discussion list

List archive

operator '<' overloaded


Chronological Thread 
  • From:
  • To:
  • Subject: operator '<' overloaded
  • Date: Mon, 4 Dec 2006 12:39:04 +0100

Hello,


I use a std::map<,> in my code,
and received a message as follows.
< Error message
>**************************************************************
...
c:/NAGAI/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_function.h:227:
error: no match for 'operator<' in '__x < __y'
C:/NAGAI/CGAL/CGAL-3.2.1/include/CGAL/Gmpz.h:151: note: candidates are: bool
CGAL::operator<(const CGAL::Gmpz&, int)
C:/NAGAI/CGAL/CGAL-3.2.1/include/CGAL/Gmpz.h:139: note: bool
CGAL::operator<(const CGAL::Gmpz&, const CGAL::Gmpz&)
C:/NAGAI/CGAL/CGAL-3.2.1/include/CGAL/MP_Float.h:269: note:
bool CGAL::operator<(const CGAL::MP_Float&, const CGAL::MP_Float&)
...
*****************************************************************
I think this error is related to overloading the operator '<' in CGAL.


All of the code is long, so I'll show a part of it.
I skipped many parts of code which I consider they mean nothing to this
problem.

< A part of codes
>**************************************************************
...
struct ControlPointsOfFacet{
Point p[ 10 ];
};
...

class Surface{
public:
Polyhedron surfaceMesh;
std::map< FacetIterator, ControlPointsOfFacet > controlPoint;
...
}
...



...( in another member function of class Surface )
Surface surface;
...
FacetIterator fit = surface.surfaceMesh.facets_begin();
...
ControlPointsOfFacet cp;
cp.p[0]=Point(...);
...
cp.p[9]=Point(...);
...
controlPoint.insert( std::make_pair( fit, cp ) );
...
*****************************************************************

How can I fix this problem?


Regards,
Yukie NAGAI



Archive powered by MHonArc 2.6.16.

Top of Page