From ab7220987e5da20b44dee3171f3e698eef48018d Mon Sep 17 00:00:00 2001 From: Bruno Lalande Date: Sat, 12 Jan 2013 20:56:00 +0000 Subject: [PATCH] Removed a useless template parameter + used devariant_area in the no-strategy overload. [SVN r82467] --- include/boost/geometry/algorithms/area.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/geometry/algorithms/area.hpp b/include/boost/geometry/algorithms/area.hpp index f60bbdc63..a4c8e547c 100644 --- a/include/boost/geometry/algorithms/area.hpp +++ b/include/boost/geometry/algorithms/area.hpp @@ -179,7 +179,8 @@ template struct devarianted_area { template - static inline typename Strategy::return_type apply(Geometry const& geometry, Strategy const& strategy) + static inline typename Strategy::return_type apply(Geometry const& geometry, + Strategy const& strategy) { return area::apply(geometry, strategy); } @@ -202,9 +203,10 @@ struct devarianted_area > } }; - template + template static inline typename Strategy::return_type - apply(Geometry const& geometry, Strategy const& strategy) + apply(boost::variant const& geometry, + Strategy const& strategy) { return boost::apply_visitor(visitor(strategy), geometry); } @@ -251,7 +253,7 @@ inline typename default_area_result::type area(Geometry const& geometr // detail::throw_on_empty_input(geometry); - return dispatch::area::apply(geometry, strategy_type()); + return dispatch::devarianted_area::apply(geometry, strategy_type()); } /*!