More dependency reduction: Reused Boost.Move/Boost.Intrusive/Boost.Container utilities, removed some standard headers.

Removed some GCC warnings.
This commit is contained in:
Ion Gaztañaga
2015-01-07 00:56:27 +01:00
parent 256eb4e6cd
commit a8b8eac741
47 changed files with 252 additions and 222 deletions

View File

@@ -12,12 +12,13 @@
#define BOOST_INTERPROCESS_TEST_MEMORY_ALGORITHM_TEST_TEMPLATE_HEADER
#include <boost/interprocess/detail/config_begin.hpp>
#include <boost/interprocess/containers/vector.hpp>
#include <vector>
#include <iostream>
#include <new>
#include <utility>
#include <new> //std::nothrow
#include <cstring> //std::memset
#include <boost/interprocess/containers/vector.hpp>
namespace boost { namespace interprocess { namespace test {
@@ -32,7 +33,7 @@ bool test_allocation(Allocator &a)
; t != EndDeallocationType
; t = (deallocation_type)((int)t + 1)){
std::vector<void*> buffers;
typename Allocator::size_type free_memory = a.get_free_memory();
typename Allocator::size_type free_memory = a.get_free_memory();
for(int i = 0; true; ++i){
void *ptr = a.allocate(i, std::nothrow);