summaryrefslogtreecommitdiff
path: root/boost/geometry/strategies/default_area_result.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/strategies/default_area_result.hpp')
-rw-r--r--boost/geometry/strategies/default_area_result.hpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/boost/geometry/strategies/default_area_result.hpp b/boost/geometry/strategies/default_area_result.hpp
index 8adfa5d6ea..65818ea91a 100644
--- a/boost/geometry/strategies/default_area_result.hpp
+++ b/boost/geometry/strategies/default_area_result.hpp
@@ -3,6 +3,7 @@
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
+// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
@@ -15,10 +16,7 @@
#define BOOST_GEOMETRY_STRATEGIES_DEFAULT_AREA_RESULT_HPP
-#include <boost/geometry/core/cs.hpp>
-#include <boost/geometry/core/coordinate_type.hpp>
-#include <boost/geometry/strategies/area.hpp>
-#include <boost/geometry/util/select_most_precise.hpp>
+#include <boost/geometry/strategies/area_result.hpp>
namespace boost { namespace geometry
@@ -33,16 +31,8 @@ namespace boost { namespace geometry
template <typename Geometry>
struct default_area_result
-{
- typedef typename point_type<Geometry>::type point_type;
- typedef typename strategy::area::services::default_strategy
- <
- typename cs_tag<point_type>::type,
- point_type
- >::type strategy_type;
-
- typedef typename strategy_type::return_type type;
-};
+ : area_result<Geometry>
+{};
}} // namespace boost::geometry