From 8bd87961810251cac534f8f308a4b91e5d21afe0 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Mon, 16 Nov 2015 23:57:28 +0100 Subject: removes warnings when compiling with c++11 using uniqueptr instead of autoptr (bzr r14475) --- src/2geom/curve.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/2geom/curve.cpp') 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 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 splits; +#if __cplusplus <= 199711L std::auto_ptr deriv(derivative()); +#else + std::unique_ptr deriv(derivative()); +#endif splits = deriv->roots(0, X); if (splits.empty()) { return result; -- cgit v1.2.3