summaryrefslogtreecommitdiff
path: root/boost/geometry/geometries/point_xy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/geometries/point_xy.hpp')
-rw-r--r--boost/geometry/geometries/point_xy.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/boost/geometry/geometries/point_xy.hpp b/boost/geometry/geometries/point_xy.hpp
index 652930666f..bbc35d5cec 100644
--- a/boost/geometry/geometries/point_xy.hpp
+++ b/boost/geometry/geometries/point_xy.hpp
@@ -16,6 +16,7 @@
#include <cstddef>
+#include <boost/config.hpp>
#include <boost/mpl/int.hpp>
#include <boost/geometry/core/cs.hpp>
@@ -32,6 +33,7 @@ namespace model { namespace d2
\tparam CoordinateType numeric type, for example, double, float, int
\tparam CoordinateSystem coordinate system, defaults to cs::cartesian
+\qbk{[include reference/geometries/point_xy.qbk]}
\qbk{before.synopsis,
[heading Model of]
[link geometry.reference.concepts.concept_point Point Concept]
@@ -45,10 +47,14 @@ class point_xy : public model::point<CoordinateType, 2, CoordinateSystem>
{
public:
- /// Default constructor, does not initialize anything
+#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
+ /// \constructor_default_no_init
+ point_xy() = default;
+#else
+ /// \constructor_default_no_init
inline point_xy()
- : model::point<CoordinateType, 2, CoordinateSystem>()
{}
+#endif
/// Constructor with x/y values
inline point_xy(CoordinateType const& x, CoordinateType const& y)