From 03778c6af7f1f116fc5722596a31334315451a53 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 8 Jul 2016 09:33:25 -0700 Subject: [PATCH] Restore separate default and x,y point constructors --- include/mapbox/geometry/point.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/mapbox/geometry/point.hpp b/include/mapbox/geometry/point.hpp index d9f6025..847e3b0 100644 --- a/include/mapbox/geometry/point.hpp +++ b/include/mapbox/geometry/point.hpp @@ -7,7 +7,14 @@ template struct point { using coordinate_type = T; - constexpr point(T x_ = T(), T y_ = T()) : x(x_), y(y_) {} + + constexpr point() + : x(), y() + {} + constexpr point(T x_, T y_) + : x(x_), y(y_) + {} + T x; T y; };