]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/example/doc_managed_copy_on_write.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / example / doc_managed_copy_on_write.cpp
index 239f032313b574b49402968abc3a025167447015..1ba566cbcf5db56411765eb3f0d00a072a71d6ba 100644 (file)
@@ -7,7 +7,7 @@
 // See http://www.boost.org/libs/interprocess for documentation.
 //
 //////////////////////////////////////////////////////////////////////////////
-#include <boost/interprocess/detail/config_begin.hpp>
+
 #include <boost/interprocess/detail/os_file_functions.hpp>
 //[doc_managed_copy_on_write
 #include <boost/interprocess/managed_mapped_file.hpp>
@@ -50,7 +50,7 @@ int main()
    {
       //Create an named integer in a managed mapped file
       managed_mapped_file managed_file(create_only, ManagedFile, 65536);
-      managed_file.construct<int>("MyInt")(0u);
+      managed_file.construct<int>("MyInt")(0);
 
       //Now create a copy on write version
       managed_mapped_file managed_file_cow(open_copy_on_write, ManagedFile);
@@ -96,4 +96,4 @@ int main()
    return 0;
 }
 //]
-#include <boost/interprocess/detail/config_end.hpp>
+