X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Finterprocess%2Ftest%2Funique_ptr_test.cpp;h=b9e24dd2baff75b2318d42669016dafc09ef562b;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=9e573138827683003e6dc9ca33e47d12b765800a;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/libs/interprocess/test/unique_ptr_test.cpp b/libs/interprocess/test/unique_ptr_test.cpp index 9e57313..b9e24dd 100644 --- a/libs/interprocess/test/unique_ptr_test.cpp +++ b/libs/interprocess/test/unique_ptr_test.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -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(anonymous_instance)() ,segment.get_deleter()); @@ -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 set_less_t; MySet set(set_less_t(), segment.get_segment_manager());