32 ordered_unique< member<book,book::id_type,&book::id> >,
43 boost::filesystem::path temp = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path();
45 std::cerr << temp <<
" \n";
58 BOOST_TEST_MESSAGE(
"Creating book" );
64 BOOST_REQUIRE( &new_book != ©_new_book );
66 BOOST_REQUIRE_EQUAL( new_book.a, copy_new_book.
a );
67 BOOST_REQUIRE_EQUAL( new_book.b, copy_new_book.
b );
73 BOOST_REQUIRE_EQUAL( new_book.a, 5 );
74 BOOST_REQUIRE_EQUAL( new_book.b, 6 );
76 BOOST_REQUIRE_EQUAL( new_book.a, copy_new_book.
a );
77 BOOST_REQUIRE_EQUAL( new_book.b, copy_new_book.
b );
86 BOOST_REQUIRE_EQUAL( new_book.a, 7 );
87 BOOST_REQUIRE_EQUAL( new_book.b, 8 );
89 BOOST_REQUIRE_EQUAL( new_book.a, 5 );
90 BOOST_REQUIRE_EQUAL( new_book.b, 6 );
99 BOOST_REQUIRE_EQUAL( new_book.a, 5 );
100 BOOST_REQUIRE_EQUAL( new_book.b, 6 );
101 BOOST_REQUIRE_EQUAL( book2.a, 9 );
102 BOOST_REQUIRE_EQUAL( book2.b, 10 );
105 BOOST_REQUIRE_EQUAL( new_book.a, 5 );
106 BOOST_REQUIRE_EQUAL( new_book.b, 6 );
116 BOOST_REQUIRE_EQUAL( new_book.a, 7 );
117 BOOST_REQUIRE_EQUAL( new_book.b, 8 );
120 BOOST_REQUIRE_EQUAL( new_book.a, 7 );
121 BOOST_REQUIRE_EQUAL( new_book.b, 8 );
123 BOOST_REQUIRE_EQUAL( new_book.a, 5 );
124 BOOST_REQUIRE_EQUAL( new_book.b, 6 );
126 BOOST_REQUIRE_EQUAL( new_book.a, copy_new_book.
a );
127 BOOST_REQUIRE_EQUAL( new_book.b, copy_new_book.
b );
129 bfs::remove_all( temp );
132 bfs::remove_all( temp );
multi_index_container< book, indexed_by< ordered_unique< member< book, book::id_type,&book::id > >, ordered_unique< BOOST_MULTI_INDEX_MEMBER(book, int, a) >, ordered_unique< BOOST_MULTI_INDEX_MEMBER(book, int, b) > >, chainbase::node_allocator< book > > book_index