Changes for Boost.1.39

[SVN r51964]
This commit is contained in:
Ion Gaztañaga
2009-03-24 21:52:06 +00:00
parent 814c51a803
commit 3d0fcd68e3
274 changed files with 23335 additions and 20691 deletions

View File

@@ -16,7 +16,6 @@
#include <boost/interprocess/smart_ptr/shared_ptr.hpp>
#include <boost/interprocess/smart_ptr/weak_ptr.hpp>
#include <cassert>
#include <cstdio> //std::remove
using namespace boost::interprocess;
@@ -47,7 +46,7 @@ struct shared_ptr_owner
int main ()
{
//Destroy any previous file with the name to be used.
std::remove("MyMappedFile");
file_mapping::remove("MyMappedFile");
{
managed_mapped_file file(create_only, "MyMappedFile", 4096);
@@ -114,7 +113,7 @@ int main ()
//The reference count will be deallocated when all weak pointers
//disappear. After that, the file is unmapped.
}
std::remove("MyMappedFile");
file_mapping::remove("MyMappedFile");
return 0;
}
//]