1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4 
5 // This file was modified by Oracle on 2017, 2018.
6 // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates.
7 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
8 
9 // Use, modification and distribution is subject to the Boost Software License,
10 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
12 
13 #ifndef BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
14 #define BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
15 
16 #include <cmath>
17 
18 namespace boost { namespace geometry { namespace projections
19 {
20 
21 // Functions to resolve ambiguity when compiling with coordinates of different types
22 /*
23 template <typename T>
24 inline T atan2(T const& a, T const& b)
25 {
26     using std::atan2;
27     return atan2(a, b);
28 }
29 */
30 
31 template <typename T>
int_floor(T const & f)32 inline int int_floor(T const& f)
33 {
34     using std::floor;
35     return int(floor(f));
36 }
37 
38 }}} // namespace boost::geometry::projections
39 
40 #endif // BOOST_GEOMETRY_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
41