diff options
Diffstat (limited to 'boost/polygon/detail/scan_arbitrary.hpp')
-rw-r--r-- | boost/polygon/detail/scan_arbitrary.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boost/polygon/detail/scan_arbitrary.hpp b/boost/polygon/detail/scan_arbitrary.hpp index 901992a2f0..86f77784aa 100644 --- a/boost/polygon/detail/scan_arbitrary.hpp +++ b/boost/polygon/detail/scan_arbitrary.hpp @@ -316,8 +316,11 @@ namespace boost { namespace polygon{ return true; } - class less_point_down_slope : public std::binary_function<Point, Point, bool> { + class less_point_down_slope { public: + typedef Point first_argument_type; + typedef Point second_argument_type; + typedef bool result_type; inline less_point_down_slope() {} inline bool operator () (const Point& pt1, const Point& pt2) const { if(pt1.get(HORIZONTAL) < pt2.get(HORIZONTAL)) return true; |