summaryrefslogtreecommitdiff
path: root/boost/geometry/core/coordinate_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/core/coordinate_type.hpp')
-rw-r--r--boost/geometry/core/coordinate_type.hpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/boost/geometry/core/coordinate_type.hpp b/boost/geometry/core/coordinate_type.hpp
index 0f901d3f19..d17f66ab73 100644
--- a/boost/geometry/core/coordinate_type.hpp
+++ b/boost/geometry/core/coordinate_type.hpp
@@ -16,9 +16,10 @@
#include <boost/mpl/assert.hpp>
-#include <boost/type_traits/remove_const.hpp>
+#include <boost/geometry/core/tag.hpp>
#include <boost/geometry/core/point_type.hpp>
+#include <boost/geometry/util/bare_type.hpp>
#include <boost/geometry/util/promote_floating_point.hpp>
@@ -63,12 +64,17 @@ struct coordinate_type
template <typename Point>
struct coordinate_type<point_tag, Point>
{
- typedef typename traits::coordinate_type<Point>::type type;
+ typedef typename traits::coordinate_type
+ <
+ typename geometry::util::bare_type<Point>::type
+ >::type type;
};
+
} // namespace core_dispatch
#endif // DOXYGEN_NO_DISPATCH
+
/*!
\brief \brief_meta{type, coordinate type (int\, float\, double\, etc), \meta_point_type}
\tparam Geometry \tparam_geometry
@@ -79,11 +85,11 @@ struct coordinate_type<point_tag, Point>
template <typename Geometry>
struct coordinate_type
{
- typedef typename core_dispatch::coordinate_type
- <
- typename tag<Geometry>::type,
- typename boost::remove_const<Geometry>::type
- >::type type;
+ typedef typename core_dispatch::coordinate_type
+ <
+ typename tag<Geometry>::type,
+ typename geometry::util::bare_type<Geometry>::type
+ >::type type;
};
template <typename Geometry>