]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/distributions/normal.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / math / distributions / normal.hpp
index f555192bcaa70d5cf613e8fdec31fb66c6fc58cb..73ada53b6fba37df0bc0145092b79418d8d3db1c 100644 (file)
@@ -71,7 +71,21 @@ private:
 
 typedef normal_distribution<double> normal;
 
-#ifdef BOOST_MSVC
+//
+// Deduction guides, note we don't check the 
+// value of __cpp_deduction_guides, just assume
+// they work as advertised, even if this is pre-final C++17.
+//
+#ifdef __cpp_deduction_guides
+
+template <class RealType>
+normal_distribution(RealType, RealType)->normal_distribution<typename boost::math::tools::promote_args<RealType>::type>;
+template <class RealType>
+normal_distribution(RealType)->normal_distribution<typename boost::math::tools::promote_args<RealType>::type>;
+
+#endif
+
+#ifdef _MSC_VER
 #pragma warning(push)
 #pragma warning(disable:4127)
 #endif
@@ -104,7 +118,7 @@ inline const std::pair<RealType, RealType> support(const normal_distribution<Rea
   }
 }
 
-#ifdef BOOST_MSVC
+#ifdef _MSC_VER
 #pragma warning(pop)
 #endif