Changes to allow interoperability between 64 and 32 processes. Pointer type is a customization of all templated code size_type's and difference_type's.

[SVN r70069]
This commit is contained in:
Ion Gaztañaga
2011-03-17 16:42:30 +00:00
parent 283d21330b
commit b5eb07ba3e
32 changed files with 359 additions and 144 deletions

View File

@@ -19,6 +19,7 @@
#include <boost/interprocess/containers/list.hpp>
#include <boost/interprocess/detail/type_traits.hpp>
#include <boost/interprocess/allocators/node_allocator.hpp>
#include <boost/type_traits/type_with_alignment.hpp>
#include "print_container.hpp"
/******************************************************************************/
@@ -52,9 +53,9 @@ bool CheckEqual(MyUserList *userlist, MyStdList *stdlist, MyHeapList *heaplist)
int main ()
{
//Create the user memory who will store all objects
const int size_aligner = sizeof(detail::max_align);
const int size_aligner = sizeof(::boost::detail::max_align);
const int memsize = 65536/size_aligner*size_aligner;
static detail::max_align static_buffer[memsize/size_aligner];
static ::boost::detail::max_align static_buffer[memsize/size_aligner];
{
//Now test move semantics
@@ -212,7 +213,7 @@ int main ()
}
catch(boost::interprocess::bad_alloc &){}
std::size_t heap_list_size = heaplist->size();
MyHeapList::size_type heap_list_size = heaplist->size();
//Copy heap buffer to another
const char *insert_beg = static_cast<char*>(heap_buffer.get_address());
@@ -245,7 +246,7 @@ int main ()
}
catch(boost::interprocess::bad_alloc &){}
std::size_t user_list_size = userlist->size();
MyUserList::size_type user_list_size = userlist->size();
if(user_list_size <= heap_list_size){
return 1;