diff --git a/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp b/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp index 0cf0e7c3c..13626871a 100644 --- a/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp +++ b/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp @@ -66,7 +66,8 @@ struct geometry_covered_by_box static inline bool apply(Geometry const& geometry, Box const& box, Strategy const& strategy) { using point_type = typename point_type::type; - using box_type = model::box; + using mutable_point_type = typename helper_geometry::type; + using box_type = model::box; // TODO: this is not optimal since the process should be able to terminate if a point is found // outside of the box without computing the whole envelope diff --git a/include/boost/geometry/algorithms/detail/relate/box_areal.hpp b/include/boost/geometry/algorithms/detail/relate/box_areal.hpp index b533c32a5..a9e749fdb 100644 --- a/include/boost/geometry/algorithms/detail/relate/box_areal.hpp +++ b/include/boost/geometry/algorithms/detail/relate/box_areal.hpp @@ -28,7 +28,7 @@ struct box_areal template static inline void apply(Box const& box, Areal const& areal, - Result & result, + Result& result, Strategy const& strategy) { using is_cartesian = std::is_same @@ -41,18 +41,18 @@ struct box_areal template static inline void apply(Box const& box, Areal const& areal, - Result & result, + Result& result, Strategy const& strategy, std::true_type /*is_cartesian*/) { using box_view = boost::geometry::box_view; box_view view(box); - areal_areal::apply(view, areal, result, strategy); + areal_areal::apply(view, areal, result, strategy); } template static inline void apply(Box const& box, Areal const& areal, - Result & result, + Result& result, Strategy const& strategy, std::false_type /*is_cartesian*/) {