mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +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 2004-2009. Distributed under the Boost
|
||||
// (C) Copyright Ion Gaztanaga 2004-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)
|
||||
//
|
||||
@@ -37,13 +37,6 @@ typedef test::dummy_test_allocator<wchar_t> DummyWCharAllocator;
|
||||
typedef basic_string<wchar_t, std::char_traits<wchar_t>, DummyWCharAllocator> DummyWString;
|
||||
typedef test::dummy_test_allocator<DummyWString> DummyWStringAllocator;
|
||||
|
||||
//Explicit instantiations of interprocess::basic_string
|
||||
template class basic_string<char, std::char_traits<char>, DummyCharAllocator>;
|
||||
template class basic_string<wchar_t, std::char_traits<wchar_t>, DummyWCharAllocator>;
|
||||
//Explicit instantiation of interprocess::vectors of interprocess::strings
|
||||
template class vector<DummyString, DummyStringAllocator>;
|
||||
template class vector<DummyWString, DummyWStringAllocator>;
|
||||
|
||||
struct StringEqual
|
||||
{
|
||||
template<class Str1, class Str2>
|
||||
@@ -127,7 +120,7 @@ int string_test()
|
||||
std::sprintf(buffer, "%i", i);
|
||||
auxShmString += buffer;
|
||||
auxStdString += buffer;
|
||||
shmStringVect->push_back(boost::interprocess::move(auxShmString));
|
||||
shmStringVect->push_back(boost::move(auxShmString));
|
||||
stdStringVect->push_back(auxStdString);
|
||||
}
|
||||
|
||||
@@ -157,7 +150,7 @@ int string_test()
|
||||
std::sprintf(buffer, "%i", i);
|
||||
auxShmString += buffer;
|
||||
auxStdString += buffer;
|
||||
shmStringVect->insert(shmStringVect->begin(), boost::interprocess::move(auxShmString));
|
||||
shmStringVect->insert(shmStringVect->begin(), boost::move(auxShmString));
|
||||
stdStringVect->insert(stdStringVect->begin(), auxStdString);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user