////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2004-2009. 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 "movable_int.hpp" #include "emplace_test.hpp" #include //non_copymovable_int //copyable_int //movable_int //movable_and_copyable_int using namespace ::boost::interprocess; int main () { { pair p1; pair p2; pair p3; pair p4; } { //Constructible from two values pair p1(1, 2); pair p2(1, 2); pair p3(1, 2); pair p4(1, 2); } { //Constructible from internal types pair p2(test::copyable_int(1), test::copyable_int(2)); { test::movable_int a(1), b(2); pair p3(::boost::move(a), ::boost::move(b)); } { test::movable_and_copyable_int a(1), b(2); pair p4(::boost::move(a), ::boost::move(b)); } } //piecewise_construct missing... return 0; } #include