1 | ////////////////////////////////////////////////////////////////////////////// |
---|---|
2 | // |
3 | // (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost |
4 | // Software License, Version 1.0. (See accompanying file |
5 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | // |
7 | // See http://www.boost.org/libs/container for documentation. |
8 | // |
9 | ////////////////////////////////////////////////////////////////////////////// |
10 | |
11 | #include <boost/container/set.hpp> |
12 | |
13 | struct empty |
14 | { |
15 | friend bool operator == (const empty &, const empty &){ return true; } |
16 | friend bool operator < (const empty &, const empty &){ return true; } |
17 | }; |
18 | |
19 | template class ::boost::container::set<empty>; |
20 | template class ::boost::container::multiset<empty>; |
21 | |
22 | volatile ::boost::container::set<empty> dummy; |
23 | volatile ::boost::container::multiset<empty> dummy2; |
24 | |
25 | #include <boost/container/allocator.hpp> |
26 | #include <boost/container/adaptive_pool.hpp> |
27 | #include "movable_int.hpp" |
28 | #include "dummy_test_allocator.hpp" |
29 | |
30 | namespace boost { |
31 | namespace container { |
32 | |
33 | //Explicit instantiation to detect compilation errors |
34 | |
35 | //set |
36 | template class set |
37 | < test::movable_and_copyable_int |
38 | , std::less<test::movable_and_copyable_int> |
39 | , test::simple_allocator<test::movable_and_copyable_int> |
40 | >; |
41 | |
42 | //multiset |
43 | template class multiset |
44 | < test::movable_and_copyable_int |
45 | , std::less<test::movable_and_copyable_int> |
46 | , adaptive_pool<test::movable_and_copyable_int> |
47 | >; |
48 | |
49 | }} //boost::container |
50 | |
51 | int main() |
52 | { |
53 | return 0; |
54 | } |
55 |