summaryrefslogtreecommitdiff
path: root/boost/geometry/strategies/buffer/cartesian.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/strategies/buffer/cartesian.hpp')
-rw-r--r--boost/geometry/strategies/buffer/cartesian.hpp25
1 files changed, 4 insertions, 21 deletions
diff --git a/boost/geometry/strategies/buffer/cartesian.hpp b/boost/geometry/strategies/buffer/cartesian.hpp
index 6550882806..51b68c018c 100644
--- a/boost/geometry/strategies/buffer/cartesian.hpp
+++ b/boost/geometry/strategies/buffer/cartesian.hpp
@@ -1,6 +1,6 @@
// Boost.Geometry
-// Copyright (c) 2021, Oracle and/or its affiliates.
+// Copyright (c) 2021-2022, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
@@ -12,11 +12,7 @@
#include <boost/geometry/strategies/buffer/services.hpp>
-#include <boost/geometry/strategies/distance/detail.hpp>
-#include <boost/geometry/strategies/relate/cartesian.hpp>
-
-#include <boost/geometry/strategies/cartesian/distance_projected_point.hpp>
-#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
+#include <boost/geometry/strategies/distance/cartesian.hpp>
namespace boost { namespace geometry
@@ -27,21 +23,8 @@ namespace strategies { namespace buffer
template <typename CalculationType = void>
struct cartesian
- : public strategies::relate::cartesian<CalculationType>
-{
- // Additional strategies for simplify()
-
- template <typename Geometry1, typename Geometry2>
- static auto distance(Geometry1 const&, Geometry2 const&,
- distance::detail::enable_if_ps_t<Geometry1, Geometry2> * = nullptr)
- {
- return strategy::distance::projected_point
- <
- CalculationType,
- strategy::distance::pythagoras<CalculationType>
- >();
- }
-};
+ : public strategies::distance::cartesian<CalculationType>
+{};
namespace services