diff options
Diffstat (limited to 'boost/geometry/core/coordinate_system.hpp')
-rw-r--r-- | boost/geometry/core/coordinate_system.hpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/boost/geometry/core/coordinate_system.hpp b/boost/geometry/core/coordinate_system.hpp index c23b8af15c..01e5ad1dd7 100644 --- a/boost/geometry/core/coordinate_system.hpp +++ b/boost/geometry/core/coordinate_system.hpp @@ -16,8 +16,9 @@ #include <boost/mpl/assert.hpp> -#include <boost/type_traits/remove_const.hpp> + #include <boost/geometry/core/point_type.hpp> +#include <boost/geometry/util/bare_type.hpp> namespace boost { namespace geometry @@ -61,10 +62,13 @@ namespace core_dispatch }; - template <typename P> - struct coordinate_system<point_tag, P> + template <typename Point> + struct coordinate_system<point_tag, Point> { - typedef typename traits::coordinate_system<P>::type type; + typedef typename traits::coordinate_system + < + typename geometry::util::bare_type<Point>::type + >::type type; }; @@ -82,11 +86,10 @@ namespace core_dispatch template <typename Geometry> struct coordinate_system { - typedef typename boost::remove_const<Geometry>::type ncg; typedef typename core_dispatch::coordinate_system < typename tag<Geometry>::type, - ncg + typename geometry::util::bare_type<Geometry>::type >::type type; }; |