mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-27 19:02:14 +00:00
Introducing allocator_traits and pointer_traits changes into several libraries.
[SVN r76107]
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// (C) Copyright Ion Gaztanaga 2006-2009. Distributed under the Boost
|
||||
// (C) Copyright Ion Gaztanaga 2006-2011. 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)
|
||||
//
|
||||
@@ -77,7 +77,7 @@ int main ()
|
||||
//In the following line, no string copy-constructor will be called.
|
||||
//"move_me"'s contents will be transferred to the string created in
|
||||
//the vector
|
||||
myshmvector->push_back(boost::interprocess::move(move_me));
|
||||
myshmvector->push_back(boost::move(move_me));
|
||||
|
||||
//The source string is in default constructed state
|
||||
assert(move_me.empty());
|
||||
@@ -93,7 +93,7 @@ int main ()
|
||||
//No string copy-constructor or assignments will be called, but
|
||||
//move constructors and move-assignments. No memory allocation
|
||||
//function will be called in this operations!!
|
||||
myshmvector->insert(myshmvector->begin(), boost::interprocess::move(string_to_compare));
|
||||
myshmvector->insert(myshmvector->begin(), boost::move(string_to_compare));
|
||||
|
||||
//Destroy vector. This will free all strings that the vector contains
|
||||
shm.destroy_ptr(myshmvector);
|
||||
|
||||
Reference in New Issue
Block a user