Declare operator const

This commit is contained in:
Andreas Fabri 2010-12-12 21:35:05 +00:00
parent 00a7b64e89
commit 202ac9c617
1 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ template<typename Comparable>
template<typename Comparable,typename Tag> struct Compare_for_vert_line_map_ template<typename Comparable,typename Tag> struct Compare_for_vert_line_map_
{ {
bool operator() (const Comparable& a, const Comparable& b) { bool operator() (const Comparable& a, const Comparable& b) const {
return a<b; return a<b;
} }
}; };
@ -105,7 +105,7 @@ template<typename Comparable,typename Tag> struct Compare_for_vert_line_map_
template<typename Comparable> template<typename Comparable>
struct Compare_for_vert_line_map_<Comparable,boost::true_type> { struct Compare_for_vert_line_map_<Comparable,boost::true_type> {
bool operator() (const Comparable& a, const Comparable& b) { bool operator() (const Comparable& a, const Comparable& b) const {
return CGAL::Handle_id_less_than< Comparable >()(a,b); return CGAL::Handle_id_less_than< Comparable >()(a,b);
} }
}; };
@ -125,7 +125,7 @@ template<typename Comparable> struct Compare_for_vert_line_map
public: public:
bool operator() (const Comparable& a, const Comparable& b) { bool operator() (const Comparable& a, const Comparable& b) const {
return eval(a,b); return eval(a,b);
} }