]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/example/luroth.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / example / luroth.cpp
index cfaa5538725a4dc541ef7011cdf84ab06b0be891..7bb33e55453f7e1cec58afd631a9272155b98cac 100644 (file)
@@ -2,17 +2,27 @@
 //  Use, modification and distribution are 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)
-#include <boost/multiprecision/mpfr.hpp>
+
+#include <iostream>
 #include <boost/math/tools/luroth_expansion.hpp>
 #include <boost/math/constants/constants.hpp>
 
+#ifndef BOOST_MATH_STANDALONE
+#include <boost/multiprecision/mpfr.hpp>
+using boost::multiprecision::mpfr_float;
+#endif // BOOST_MATH_STANDALONE
+
 using boost::math::constants::pi;
 using boost::math::tools::luroth_expansion;
-using boost::multiprecision::mpfr_float;
 
 int main() {
+    #ifndef BOOST_MATH_STANDALONE
     using Real = mpfr_float;
     mpfr_float::default_precision(1024);
+    #else
+    using Real = long double;
+    #endif
+    
     auto luroth = luroth_expansion(pi<Real>());
     std::cout << luroth << "\n";
 }