]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/iterator/example/node_iterator2.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / iterator / example / node_iterator2.cpp
index 62211b212d004703e742d86bffdf07d9fbc277f8..f8f873ec3aa3e955909ed90ce0c9d1040e43db4d 100644 (file)
 
 int main()
 {
+
+#if defined(BOOST_NO_CXX11_SMART_PTR)
+
     std::auto_ptr<node<int> > nodes(new node<int>(42));
+    
+#else
+
+    std::unique_ptr<node<int> > nodes(new node<int>(42));
+    
+#endif
+
     nodes->append(new node<std::string>(" is greater than "));
     nodes->append(new node<int>(13));