summaryrefslogtreecommitdiff
path: root/boost/geometry/srs/projections/impl/aasincos.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/srs/projections/impl/aasincos.hpp')
-rw-r--r--boost/geometry/srs/projections/impl/aasincos.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/boost/geometry/srs/projections/impl/aasincos.hpp b/boost/geometry/srs/projections/impl/aasincos.hpp
index 4678029bc0..de064f6a01 100644
--- a/boost/geometry/srs/projections/impl/aasincos.hpp
+++ b/boost/geometry/srs/projections/impl/aasincos.hpp
@@ -3,6 +3,10 @@
// Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
+// This file was modified by Oracle on 2018.
+// Modifications copyright (c) 2018, 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)
@@ -66,7 +70,7 @@ inline T aasin(T const& v)
{
if (av > aasincos::ONE_TOL<T>())
{
- BOOST_THROW_EXCEPTION( projection_exception(-19) );
+ BOOST_THROW_EXCEPTION( projection_exception(error_acos_asin_arg_too_large) );
}
return (v < 0.0 ? -geometry::math::half_pi<T>() : geometry::math::half_pi<T>());
}
@@ -83,7 +87,7 @@ inline T aacos(T const& v)
{
if (av > aasincos::ONE_TOL<T>())
{
- BOOST_THROW_EXCEPTION( projection_exception(-19) );
+ BOOST_THROW_EXCEPTION( projection_exception(error_acos_asin_arg_too_large) );
}
return (v < 0.0 ? geometry::math::pi<T>() : 0.0);
}