Skip to content

Commit

Permalink
Support incompatible change in Boost 1.60. #3117
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Mar 13, 2016
1 parent 38d9acb commit f4a9fa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xs/src/libslic3r/Point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ namespace boost { namespace polygon {
template <>
struct geometry_concept<coord_t> { typedef coordinate_concept type; };

/* Boost.Polygon already defines a specialization for coordinate_traits<long> as of 1.60:
https://github.com/boostorg/polygon/commit/0ac7230dd1f8f34cb12b86c8bb121ae86d3d9b97 */
#if BOOST_VERSION < 106000
template <>
struct coordinate_traits<coord_t> {
typedef coord_t coordinate_type;
Expand All @@ -128,6 +131,7 @@ namespace boost { namespace polygon {
typedef long long coordinate_difference;
typedef long double coordinate_distance;
};
#endif

template <>
struct geometry_concept<Point> { typedef point_concept type; };
Expand Down

0 comments on commit f4a9fa6

Please sign in to comment.