]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/parameter/aux_/default.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / parameter / aux_ / default.hpp
index 1e9d970994afcf6d9af6bf7525fd2c3a3dce58d7..c07fb7ba4cce6106e2a0379aea3fcd4e6d1f16a9 100644 (file)
@@ -91,6 +91,17 @@ namespace boost { namespace parameter { namespace aux {
         {
         }
 
+#if BOOST_WORKAROUND(BOOST_MSVC, < 1910)
+        // MSVC 2015 miscompiles moves for classes containing rvalue ref members
+        // using the default generated move constructor
+        // when moving into a function
+        // https://github.com/boostorg/parameter/pull/109
+        inline BOOST_CONSTEXPR default_r_(default_r_&& x)
+          : value(::std::forward<Value>(x.value))
+        {
+        }
+#endif
+
         Value&& value;
     };
 }}} // namespace boost::parameter::aux