summaryrefslogtreecommitdiffstats
path: root/src/2geom/curve.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2015-12-07 10:00:35 +0000
committer~suv <suv-sf@users.sourceforge.net>2015-12-07 10:00:35 +0000
commit457c41675d69c7463c3590ad9b8e43bcae20e611 (patch)
tree43d1f8d4e350a3070944bbd7bb4ad265c1b6ed02 /src/2geom/curve.cpp
parentmerge from trunk (r14473) (diff)
parentRemove leftover assert. (diff)
downloadinkscape-457c41675d69c7463c3590ad9b8e43bcae20e611.tar.gz
inkscape-457c41675d69c7463c3590ad9b8e43bcae20e611.zip
merge from trunk (r14506)
(bzr r14425.1.4)
Diffstat (limited to 'src/2geom/curve.cpp')
-rw-r--r--src/2geom/curve.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/2geom/curve.cpp b/src/2geom/curve.cpp
index b45228514..24c8be9f8 100644
--- a/src/2geom/curve.cpp
+++ b/src/2geom/curve.cpp
@@ -108,7 +108,11 @@ std::vector<CurveIntersection> Curve::intersectSelf(Coord eps) const
// Monotonic segments cannot have self-intersections.
// Thus, we can split the curve at roots and intersect the portions.
std::vector<Coord> splits;
+#if __cplusplus <= 199711L
std::auto_ptr<Curve> deriv(derivative());
+#else
+ std::unique_ptr<Curve> deriv(derivative());
+#endif
splits = deriv->roots(0, X);
if (splits.empty()) {
return result;