diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-08-26 08:15:55 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-08-26 08:15:55 -0400 |
commit | bb4dd8289b351fae6b55e303f189127a394a1edd (patch) | |
tree | 77c9c35a31b1459dd7988c2448e797d142530c41 /libs/interprocess/test/unique_ptr_test.cpp | |
parent | 1a78a62555be32868418fe52f8e330c9d0f95d5a (diff) | |
download | boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.gz boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.bz2 boost-bb4dd8289b351fae6b55e303f189127a394a1edd.zip |
Imported Upstream version 1.51.0upstream/1.51.0
Diffstat (limited to 'libs/interprocess/test/unique_ptr_test.cpp')
-rw-r--r-- | libs/interprocess/test/unique_ptr_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/interprocess/test/unique_ptr_test.cpp b/libs/interprocess/test/unique_ptr_test.cpp index 64525721ec..9e57313882 100644 --- a/libs/interprocess/test/unique_ptr_test.cpp +++ b/libs/interprocess/test/unique_ptr_test.cpp @@ -56,7 +56,7 @@ int main() shared_memory_object::remove(process_name.c_str()); { managed_shared_memory segment(create_only, process_name.c_str(), 10000); - + //Create unique_ptr using dynamic allocation my_unique_ptr_class my_ptr (segment.construct<MyClass>(anonymous_instance)() ,segment.get_deleter<MyClass>()); @@ -83,7 +83,7 @@ int main() assert(my_ptr2.get() == 0); assert(list.begin()->get() == ptr1); assert(list.rbegin()->get() == ptr2); - + //Construct a set and fill typedef std::less<my_unique_ptr_class> set_less_t; MySet set(set_less_t(), segment.get_segment_manager()); |