No reason not to make this function const, and it helps with several STL

implementations.
This commit is contained in:
Marc Glisse 2009-06-18 19:50:50 +00:00
parent 138303d8a8
commit f8d199ad6d
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ typedef CGAL::Random_points_in_cube_3<Point> RandPts;
// Segment comparison needed by the segment set
template <class Segment>
struct Compare_segment {
bool operator()(Segment s1, Segment s2) {
bool operator()(Segment s1, Segment s2) const {
if (s1.source() == s2.source()) return (s1.target() < s2.target());
return (s1.source() < s2.source());
}