From d8513265a23b5b514c10ae430ec9ffbb1efddccf Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Thu, 2 Mar 2017 19:24:05 +0100 Subject: [PATCH] [strategies] Fix compilation errors in geodesic_intersection. Remove static keyword from strategies getters. Rename template parameter to avoid shadowing. --- .../geographic/geodesic_intersection.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/boost/geometry/strategies/geographic/geodesic_intersection.hpp b/include/boost/geometry/strategies/geographic/geodesic_intersection.hpp index 27581e7af..e2dc96e39 100644 --- a/include/boost/geometry/strategies/geographic/geodesic_intersection.hpp +++ b/include/boost/geometry/strategies/geographic/geodesic_intersection.hpp @@ -34,7 +34,7 @@ #include #include -#include +#include #include #include #include @@ -63,12 +63,12 @@ template > struct relate_geodesic_segments { - typedef side::detail::by_azimuth + typedef side::geographic < Inverse, Spheroid, CalculationType > side_strategy_type; - static inline side_strategy_type get_side_strategy() + inline side_strategy_type get_side_strategy() { return side_strategy_type(m_spheroid); } @@ -86,7 +86,7 @@ struct relate_geodesic_segments }; template - static inline typename point_in_geometry_strategy::type + inline typename point_in_geometry_strategy::type get_point_in_geometry_strategy() { typedef typename point_in_geometry_strategy @@ -112,7 +112,7 @@ struct relate_geodesic_segments }; template - static inline typename area_strategy::type get_area_strategy() + inline typename area_strategy::type get_area_strategy() { typedef typename area_strategy::type strategy_type; return strategy_type(m_spheroid); @@ -125,7 +125,7 @@ struct relate_geodesic_segments }; template - static inline typename distance_strategy::type get_distance_strategy() + inline typename distance_strategy::type get_distance_strategy() { typedef typename distance_strategy::type strategy_type; return strategy_type(m_spheroid); @@ -872,8 +872,8 @@ private: ip_flag; } - template - static inline srs::spheroid normalized_spheroid(Spheroid const& spheroid) + template + static inline srs::spheroid normalized_spheroid(SpheroidT const& spheroid) { return srs::spheroid(CalcT(1), CalcT(get_radius<2>(spheroid)) // b/a