mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 16:22:19 +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)
|
||||
//
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <boost/interprocess/detail/config_begin.hpp>
|
||||
//[doc_managed_multiple_allocation
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <boost/interprocess/detail/move.hpp> //boost::interprocess::move
|
||||
#include <boost/interprocess/detail/move.hpp> //boost::move
|
||||
#include <cassert>//assert
|
||||
#include <cstring>//std::memset
|
||||
#include <new> //std::nothrow
|
||||
@@ -81,7 +81,7 @@ int main()
|
||||
sizes[i] = i*3;
|
||||
|
||||
chain = managed_shm.allocate_many(sizes, 10);
|
||||
managed_shm.deallocate_many(boost::interprocess::move(chain));
|
||||
managed_shm.deallocate_many(boost::move(chain));
|
||||
return 0;
|
||||
}
|
||||
//]
|
||||
|
||||
Reference in New Issue
Block a user