]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/thread/test/util.inl
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / thread / test / util.inl
index 470cc3a6a5edd1ead3ebb6773a23c03524cb4fc5..e4709bc3eec43ade4c287e3415eb6f8da37c2d6e 100644 (file)
@@ -12,6 +12,7 @@
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/condition.hpp>
 #include <boost/thread/thread.hpp>
+#include <boost/config.hpp>
 
 #ifndef DEFAULT_EXECUTION_MONITOR_TYPE
 #   define DEFAULT_EXECUTION_MONITOR_TYPE execution_monitor::use_condition
@@ -133,6 +134,10 @@ class indirect_adapter
 public:
     indirect_adapter(F func, execution_monitor& monitor)
         : func(func), monitor(monitor) { }
+#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS)
+    indirect_adapter(indirect_adapter const&) = default;
+#endif
+
     void operator()() const
     {
         try
@@ -210,11 +215,15 @@ class thread_member_binder
 public:
     thread_member_binder(R (T::*func)(), T& param)
         : func(func), param(param) { }
+#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS)
+    thread_member_binder(thread_member_binder const&) = default;
+#endif
+
     void operator()() const { (param.*func)(); }
 
 private:
     void operator=(thread_member_binder&);
-    
+
     R (T::*func)();
     T& param;
 };