////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2004-2012. 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) // // See http://www.boost.org/libs/interprocess for documentation. // ////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include "movable_int.hpp" #include "list_test.hpp" #include "vector_test.hpp" using namespace boost::interprocess; typedef test::overaligned_copyable_int oint_t; //We will work with wide characters for shared memory objects //Alias an integer node allocator type typedef private_node_allocator priv_node_allocator_t; typedef ipcdetail::private_node_allocator_v1 priv_node_allocator_v1_t; typedef private_node_allocator < oint_t, managed_shared_memory::segment_manager> shmem_onode_allocator_t; typedef ipcdetail::private_node_allocator_v1 < oint_t, managed_shared_memory::segment_manager> shmem_onode_allocator_v1_t; namespace boost { namespace interprocess { //Explicit instantiations to catch compilation errors template class private_node_allocator; template class private_node_allocator; template class private_node_allocator; namespace ipcdetail { template class ipcdetail::private_node_allocator_v1; template class ipcdetail::private_node_allocator_v1; template class ipcdetail::private_node_allocator_v1; }}} //Alias list types typedef boost::container::list MyShmList; typedef boost::container::list MyShmListV1; typedef boost::container::list MyOShmList; typedef boost::container::list MyOShmListV1; //Alias vector types typedef boost::container::vector MyShmVector; typedef boost::container::vector MyShmVectorV1; typedef boost::container::vector MyOShmVector; typedef boost::container::vector MyOShmVectorV1; int main () { if(test::list_test(false)) return 1; if(test::list_test(false)) return 1; if(test::list_test(false)) return 1; if(test::list_test(false)) return 1; if(test::vector_test()) return 1; if(test::vector_test()) return 1; if(test::vector_test()) return 1; if(test::vector_test()) return 1; return 0; }