summaryrefslogtreecommitdiff
path: root/boost/geometry/srs/projections/impl/function_overloads.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/srs/projections/impl/function_overloads.hpp')
-rw-r--r--boost/geometry/srs/projections/impl/function_overloads.hpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/boost/geometry/srs/projections/impl/function_overloads.hpp b/boost/geometry/srs/projections/impl/function_overloads.hpp
new file mode 100644
index 0000000000..43d33c6bea
--- /dev/null
+++ b/boost/geometry/srs/projections/impl/function_overloads.hpp
@@ -0,0 +1,46 @@
+// Boost.Geometry (aka GGL, Generic Geometry Library)
+
+// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
+
+// This file was modified by Oracle on 2017.
+// Modifications copyright (c) 2017, Oracle and/or its affiliates.
+// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
+
+// Use, modification and distribution is subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
+#define BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
+
+#include <cmath>
+
+namespace boost { namespace geometry { namespace projections
+{
+
+// Functions to resolve ambiguity when compiling with coordinates of different types
+/*
+template <typename T>
+inline T atan2(T const& a, T const& b)
+{
+ using std::atan2;
+ return atan2(a, b);
+}
+template <typename T>
+inline T pow(T const& a, T const& b)
+{
+ using std::pow;
+ return pow(a, b);
+}
+*/
+
+template <typename T>
+inline int int_floor(T const& f)
+{
+ using std::floor;
+ return int(floor(f));
+}
+
+}}} // namespace boost::geometry::projections
+
+#endif // BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP