diff options
Diffstat (limited to 'boost/polygon/detail/boolean_op_45.hpp')
-rw-r--r-- | boost/polygon/detail/boolean_op_45.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/boost/polygon/detail/boolean_op_45.hpp b/boost/polygon/detail/boolean_op_45.hpp index bfc6e2f78b..0d6550185f 100644 --- a/boost/polygon/detail/boolean_op_45.hpp +++ b/boost/polygon/detail/boolean_op_45.hpp @@ -150,8 +150,11 @@ namespace boost { namespace polygon{ // return o; // } - class lessScan45ElementRise : public std::binary_function<Scan45Element, Scan45Element, bool> { + class lessScan45ElementRise { public: + typedef Scan45Element first_argument_type; + typedef Scan45Element second_argument_type; + typedef bool result_type; inline lessScan45ElementRise() {} //default constructor is only constructor inline bool operator () (Scan45Element elm1, Scan45Element elm2) const { return elm1.rise < elm2.rise; @@ -457,8 +460,11 @@ namespace boost { namespace polygon{ return Scan45Element(vertex.first.x(), vertex.first.y(), index - 1, vertex.second[index]); } - class lessScan45Point : public std::binary_function<Point, Point, bool> { + class lessScan45Point { public: + typedef Point first_argument_type; + typedef Point second_argument_type; + typedef bool result_type; inline lessScan45Point() {} //default constructor is only constructor inline bool operator () (const Point& v1, const Point& v2) const { return (v1.x() < v2.x()) || (v1.x() == v2.x() && v1.y() < v2.y()); |