]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/concepts/std_real_concept.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / math / concepts / std_real_concept.hpp
index d855d2d55f9fbd5939ca847a6dfedd4d1b1db8da..b116282888ba5ddd09dde263aa8f54bb6b1b897a 100644 (file)
@@ -226,6 +226,8 @@ inline boost::math::concepts::std_real_concept sqrt(boost::math::concepts::std_r
 { return std::sqrt(a.value()); }
 inline boost::math::concepts::std_real_concept tanh(boost::math::concepts::std_real_concept a)
 { return std::tanh(a.value()); }
+inline boost::math::concepts::std_real_concept (nextafter)(boost::math::concepts::std_real_concept a, boost::math::concepts::std_real_concept b)
+{ return (boost::math::nextafter)(a, b); }
 //
 // C++11 ism's
 // Note that these must not actually call the std:: versions as that precludes using this
@@ -237,6 +239,10 @@ inline boost::math::concepts::std_real_concept acosh(boost::math::concepts::std_
 { return boost::math::acosh(a.value(), boost::math::policies::make_policy(boost::math::policies::overflow_error<boost::math::policies::ignore_error>())); }
 inline boost::math::concepts::std_real_concept atanh(boost::math::concepts::std_real_concept a)
 { return boost::math::atanh(a.value(), boost::math::policies::make_policy(boost::math::policies::overflow_error<boost::math::policies::ignore_error>())); }
+inline bool (isfinite)(boost::math::concepts::std_real_concept a)
+{
+   return (boost::math::isfinite)(a.value());
+}
 
 
 } // namespace std
@@ -396,6 +402,13 @@ inline BOOST_MATH_CONSTEXPR int digits<concepts::std_real_concept>(BOOST_MATH_EX
    return digits<concepts::std_real_concept_base_type>();
 }
 
+template <>
+inline double real_cast<double, concepts::std_real_concept>(concepts::std_real_concept r)
+{
+   return static_cast<double>(r.value());
+}
+
+
 } // namespace tools
 
 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1310)