]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/multiprecision/number.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / multiprecision / number.hpp
index dc61d696f2c65331bf9a123886e7366796de2d00..f99ef2a970b5ff1cea2ce0f5caa74c6f316108f5 100644 (file)
@@ -628,8 +628,12 @@ public:
       return this->template convert_to<T>();
    }
 #  else
+#if BOOST_WORKAROUND(BOOST_MSVC, < 1900)
    template <class T>
-   explicit operator T()const
+#else
+   template <class T, class = typename boost::disable_if_c<boost::is_constructible<T, self_type const&>::value || !boost::is_default_constructible<T>::value, T>::type>
+#endif
+   explicit operator T ()const
    {
       return this->template convert_to<T>();
    }