Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2016-03-14 02:02:42 +0300
committerAlessandro Ranellucci <aar@cpan.org>2016-03-14 02:06:56 +0300
commitf4a9fa6569722ef530fac995dc66ec8b6a3179ce (patch)
treef7ec8f645e98fb00f4521e180e17dc1b56c01d9d /xs/src/libslic3r/Point.hpp
parent38d9acbbfb32ec0b36cb36b4a35e0b1ff3ee7c9b (diff)
Support incompatible change in Boost 1.60. #3117
Diffstat (limited to 'xs/src/libslic3r/Point.hpp')
-rw-r--r--xs/src/libslic3r/Point.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp
index af0f59af9..6e057aae3 100644
--- a/xs/src/libslic3r/Point.hpp
+++ b/xs/src/libslic3r/Point.hpp
@@ -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;
@@ -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; };