]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/mpl/example/fsm/aux_/event.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / mpl / example / fsm / aux_ / event.hpp
index a27e9d623987a4a682eeb3d1d2942e8d9f132661..895bd7a651d0d8b26622260bb573db5739fc6836 100644 (file)
@@ -26,12 +26,27 @@ struct event
     typedef base_event base_t;
 
  private:
+
+#if defined(BOOST_NO_CXX11_SMART_PTR)
+
     virtual std::auto_ptr<base_event> do_clone() const
     {
         return std::auto_ptr<base_event>(
               new Derived(static_cast<Derived const&>(*this))
             );
     }
+    
+#else
+
+    virtual std::unique_ptr<base_event> do_clone() const
+    {
+        return std::unique_ptr<base_event>(
+              new Derived(static_cast<Derived const&>(*this))
+            );
+    }
+    
+#endif
+
 };
 
 }}