diff options
Diffstat (limited to 'boost/graph/is_straight_line_drawing.hpp')
-rw-r--r-- | boost/graph/is_straight_line_drawing.hpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/boost/graph/is_straight_line_drawing.hpp b/boost/graph/is_straight_line_drawing.hpp index 74775b44f5..c471cde8be 100644 --- a/boost/graph/is_straight_line_drawing.hpp +++ b/boost/graph/is_straight_line_drawing.hpp @@ -9,7 +9,7 @@ #define __IS_STRAIGHT_LINE_DRAWING_HPP__ #include <boost/config.hpp> -#include <boost/utility.hpp> //for next and prior +#include <boost/next_prior.hpp> #include <boost/tuple/tuple.hpp> #include <boost/tuple/tuple_comparison.hpp> #include <boost/property_map/property_map.hpp> @@ -19,6 +19,7 @@ #include <algorithm> #include <vector> #include <set> +#include <map> @@ -34,12 +35,12 @@ namespace boost // defines how far away from the endpoints of s1 and s2 we want to consider // an intersection. - bool intersects(double x1, double y1, - double x2, double y2, - double a1, double b1, - double a2, double b2, - double epsilon = 0.000001 - ) + inline bool intersects(double x1, double y1, + double x2, double y2, + double a1, double b1, + double a2, double b2, + double epsilon = 0.000001 + ) { if (x1 - x2 == 0) |