]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/qi/numeric/detail/real_impl.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / spirit / home / qi / numeric / detail / real_impl.hpp
index 4f6851fde378392c9f246010dfb4129b055152b7..7ac106721caa3bd6e95204857c8c278463163970 100644 (file)
 #include <boost/spirit/home/support/unused.hpp>
 #include <boost/spirit/home/qi/detail/attributes.hpp>
 #include <boost/spirit/home/support/detail/pow10.hpp>
-#include <boost/spirit/home/support/detail/sign.hpp>
 #include <boost/integer.hpp>
 #include <boost/assert.hpp>
 
+#include <boost/core/cmath.hpp>
+
 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
 # pragma warning(push)
 # pragma warning(disable: 4100)   // 'p': unreferenced formal parameter
@@ -121,19 +122,19 @@ namespace boost { namespace spirit { namespace traits
     inline float
     negate(bool neg, float n)
     {
-        return neg ? spirit::detail::changesign(n) : n;
+        return neg ? (core::copysign)(n, -1.f) : n;
     }
 
     inline double
     negate(bool neg, double n)
     {
-        return neg ? spirit::detail::changesign(n) : n;
+        return neg ? (core::copysign)(n, -1.) : n;
     }
 
     inline long double
     negate(bool neg, long double n)
     {
-        return neg ? spirit::detail::changesign(n) : n;
+        return neg ? (core::copysign)(n, static_cast<long double>(-1)) : n;
     }
 
     template <typename T>