]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/signals/src/signal_base.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / signals / src / signal_base.cpp
index 759672d8cce22a4824b40e475ffc0f4d2b74be6a..432b5e942119051c43f5ae4944fce74dcdaf7294 100644 (file)
@@ -72,7 +72,16 @@ namespace boost {
         // Allocate storage for an iterator that will hold the point of
         // insertion of the slot into the list. This is used to later remove
         // the slot when it is disconnected.
+        
+#if defined(BOOST_NO_CXX11_SMART_PTR)
+
         std::auto_ptr<iterator> saved_iter(new iterator);
+        
+#else
+
+        std::unique_ptr<iterator> saved_iter(new iterator);
+        
+#endif
 
         // Add the slot to the list.
         iterator pos =
@@ -133,7 +142,16 @@ namespace boost {
         signal_base_impl* self = reinterpret_cast<signal_base_impl*>(obj);
 
         // We won't need the slot iterator after this
+        
+#if defined(BOOST_NO_CXX11_SMART_PTR)
+
         std::auto_ptr<iterator> slot(reinterpret_cast<iterator*>(data));
+        
+#else
+
+        std::unique_ptr<iterator> slot(reinterpret_cast<iterator*>(data));
+        
+#endif
 
         // If we're flags.clearing, we don't bother updating the list of slots
         if (!self->flags.clearing) {