summaryrefslogtreecommitdiff
path: root/boost/polygon/polygon_traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/polygon/polygon_traits.hpp')
-rw-r--r--boost/polygon/polygon_traits.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/boost/polygon/polygon_traits.hpp b/boost/polygon/polygon_traits.hpp
index 1149483c5a..692e9f14b1 100644
--- a/boost/polygon/polygon_traits.hpp
+++ b/boost/polygon/polygon_traits.hpp
@@ -1183,8 +1183,11 @@ namespace boost { namespace polygon{
typedef point_data<Unit> Point;
typedef std::pair<Point, Point> half_edge;
- class less_point : public std::binary_function<Point, Point, bool> {
+ class less_point {
public:
+ typedef Point first_argument_type;
+ typedef Point second_argument_type;
+ typedef bool result_type;
inline less_point() {}
inline bool operator () (const Point& pt1, const Point& pt2) const {
if(pt1.get(HORIZONTAL) < pt2.get(HORIZONTAL)) return true;