]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/log/attributes/constant.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / log / attributes / constant.hpp
index f10b0a7e5b8a0a5355a2595e8f61c2f09815feb0..bfc2877879605fc8c743f60913d7ee86068f23bf 100644 (file)
@@ -18,6 +18,7 @@
 #include <boost/move/core.hpp>
 #include <boost/move/utility_core.hpp>
 #include <boost/type_traits/remove_reference.hpp>
+#include <boost/type_traits/is_nothrow_move_constructible.hpp>
 #include <boost/log/detail/config.hpp>
 #include <boost/log/detail/embedded_string_type.hpp>
 #include <boost/log/attributes/attribute.hpp>
@@ -66,7 +67,10 @@ protected:
         /*!
          * Constructor with the stored value initialization
          */
-        explicit impl(BOOST_RV_REF(value_type) value) : base_type(boost::move(value)) {}
+        explicit impl(BOOST_RV_REF(value_type) value) BOOST_NOEXCEPT_IF(boost::is_nothrow_move_constructible< value_type >::value) :
+            base_type(boost::move(value))
+        {
+        }
     };
 
 public: