]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/distributions/chi_squared.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / distributions / chi_squared.hpp
index 071c7756f4912dff9c34120d0c90d396877a3d15..e97bee7ce7266deeed278adb0fa046b85100c8fe 100644 (file)
@@ -55,7 +55,12 @@ private:
 
 typedef chi_squared_distribution<double> chi_squared;
 
-#ifdef BOOST_MSVC
+#ifdef __cpp_deduction_guides
+template <class RealType>
+chi_squared_distribution(RealType)->chi_squared_distribution<typename boost::math::tools::promote_args<RealType>::type>;
+#endif
+
+#ifdef _MSC_VER
 #pragma warning(push)
 #pragma warning(disable:4127)
 #endif
@@ -74,7 +79,7 @@ inline const std::pair<RealType, RealType> range(const chi_squared_distribution<
   }
 }
 
-#ifdef BOOST_MSVC
+#ifdef _MSC_VER
 #pragma warning(pop)
 #endif
 
@@ -340,7 +345,7 @@ RealType chi_squared_distribution<RealType, Policy>::find_degrees_of_freedom(
 
    detail::df_estimator<RealType, Policy> f(alpha, beta, variance, difference_from_variance);
    tools::eps_tolerance<RealType> tol(policies::digits<RealType, Policy>());
-   boost::uintmax_t max_iter = policies::get_max_root_iterations<Policy>();
+   std::uintmax_t max_iter = policies::get_max_root_iterations<Policy>();
    std::pair<RealType, RealType> r =
      tools::bracket_and_solve_root(f, hint, RealType(2), false, tol, max_iter, Policy());
    RealType result = r.first + (r.second - r.first) / 2;