summaryrefslogtreecommitdiff
path: root/boost/geometry/index/detail/algorithms/margin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/index/detail/algorithms/margin.hpp')
-rw-r--r--boost/geometry/index/detail/algorithms/margin.hpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/boost/geometry/index/detail/algorithms/margin.hpp b/boost/geometry/index/detail/algorithms/margin.hpp
index 2033f4a531..dc86a511ee 100644
--- a/boost/geometry/index/detail/algorithms/margin.hpp
+++ b/boost/geometry/index/detail/algorithms/margin.hpp
@@ -4,8 +4,9 @@
//
// Copyright (c) 2011-2014 Adam Wulkiewicz, Lodz, Poland.
//
-// This file was modified by Oracle on 2020.
-// Modifications copyright (c) 2020 Oracle and/or its affiliates.
+// This file was modified by Oracle on 2020-2023.
+// Modifications copyright (c) 2020-2023, Oracle and/or its affiliates.
+// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
//
// Use, modification and distribution is subject to the Boost Software License,
@@ -15,7 +16,13 @@
#ifndef BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_MARGIN_HPP
#define BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_MARGIN_HPP
+#include <boost/geometry/core/access.hpp>
+#include <boost/geometry/core/coordinate_dimension.hpp>
+#include <boost/geometry/core/coordinate_type.hpp>
#include <boost/geometry/core/static_assert.hpp>
+#include <boost/geometry/core/tag.hpp>
+#include <boost/geometry/core/tags.hpp>
+#include <boost/geometry/util/select_most_precise.hpp>
// WARNING! comparable_margin() will work only if the same Geometries are compared
// so it shouldn't be used in the case of Variants!
@@ -25,10 +32,11 @@ namespace boost { namespace geometry { namespace index { namespace detail {
template <typename Box>
struct default_margin_result
{
- typedef typename select_most_precise<
- typename coordinate_type<Box>::type,
- long double
- >::type type;
+ using type = typename select_most_precise
+ <
+ typename coordinate_type<Box>::type,
+ double
+ >::type;
};
//template <typename Box,