Skip to content

Commit

Permalink
Restore separate default and x,y point constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jul 8, 2016
1 parent d1259f7 commit 03778c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/mapbox/geometry/point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ template <typename T>
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;
};
Expand Down

0 comments on commit 03778c6

Please sign in to comment.