summaryrefslogtreecommitdiff
path: root/boost/geometry/arithmetic/arithmetic.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/arithmetic/arithmetic.hpp')
-rw-r--r--boost/geometry/arithmetic/arithmetic.hpp30
1 files changed, 6 insertions, 24 deletions
diff --git a/boost/geometry/arithmetic/arithmetic.hpp b/boost/geometry/arithmetic/arithmetic.hpp
index bf09e7a1cb..b88bd5cceb 100644
--- a/boost/geometry/arithmetic/arithmetic.hpp
+++ b/boost/geometry/arithmetic/arithmetic.hpp
@@ -3,6 +3,7 @@
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
+// Copyright (c) 2023 Adam Wulkiewicz, Lodz, Poland.
// This file was modified by Oracle on 2021.
// Modifications copyright (c) 2021 Oracle and/or its affiliates.
@@ -20,7 +21,6 @@
#include <functional>
-#include <boost/call_traits.hpp>
#include <boost/concept/requires.hpp>
#include <boost/geometry/core/coordinate_type.hpp>
@@ -32,24 +32,6 @@
namespace boost { namespace geometry
{
-#ifndef DOXYGEN_NO_DETAIL
-namespace detail
-{
-
-
-template <typename Point>
-struct param
-{
- typedef typename boost::call_traits
- <
- typename coordinate_type<Point>::type
- >::param_type type;
-};
-
-
-} // namespace detail
-#endif // DOXYGEN_NO_DETAIL
-
/*!
\brief Adds the same value to each coordinate of a point
\ingroup arithmetic
@@ -59,7 +41,7 @@ struct param
\param value value to add
*/
template <typename Point>
-inline void add_value(Point& p, typename detail::param<Point>::type value)
+inline void add_value(Point& p, typename coordinate_type<Point>::type const& value)
{
BOOST_CONCEPT_ASSERT( (concepts::Point<Point>) );
@@ -101,7 +83,7 @@ inline void add_point(Point1& p1, Point2 const& p2)
\param value value to subtract
*/
template <typename Point>
-inline void subtract_value(Point& p, typename detail::param<Point>::type value)
+inline void subtract_value(Point& p, typename coordinate_type<Point>::type const& value)
{
BOOST_CONCEPT_ASSERT( (concepts::Point<Point>) );
@@ -143,7 +125,7 @@ inline void subtract_point(Point1& p1, Point2 const& p2)
\param value value to multiply by
*/
template <typename Point>
-inline void multiply_value(Point& p, typename detail::param<Point>::type value)
+inline void multiply_value(Point& p, typename coordinate_type<Point>::type const& value)
{
BOOST_CONCEPT_ASSERT( (concepts::Point<Point>) );
@@ -186,7 +168,7 @@ inline void multiply_point(Point1& p1, Point2 const& p2)
\param value value to divide by
*/
template <typename Point>
-inline void divide_value(Point& p, typename detail::param<Point>::type value)
+inline void divide_value(Point& p, typename coordinate_type<Point>::type const& value)
{
BOOST_CONCEPT_ASSERT( (concepts::Point<Point>) );
@@ -228,7 +210,7 @@ inline void divide_point(Point1& p1, Point2 const& p2)
\param value value to assign
*/
template <typename Point>
-inline void assign_value(Point& p, typename detail::param<Point>::type value)
+inline void assign_value(Point& p, typename coordinate_type<Point>::type const& value)
{
BOOST_CONCEPT_ASSERT( (concepts::Point<Point>) );