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/deque.hpp> |
12 | #include <boost/container/allocator.hpp> |
13 | #include "movable_int.hpp" |
14 | #include "dummy_test_allocator.hpp" |
15 | |
16 | |
17 | struct empty |
18 | { |
19 | friend bool operator == (const empty &, const empty &){ return true; } |
20 | friend bool operator < (const empty &, const empty &){ return true; } |
21 | }; |
22 | |
23 | template class ::boost::container::deque<empty>; |
24 | |
25 | volatile ::boost::container::deque<empty> dummy; |
26 | |
27 | namespace boost { |
28 | namespace container { |
29 | |
30 | //Explicit instantiation to detect compilation errors |
31 | template class boost::container::deque |
32 | < test::movable_and_copyable_int |
33 | , test::simple_allocator<test::movable_and_copyable_int> >; |
34 | |
35 | template class boost::container::deque |
36 | < test::movable_and_copyable_int |
37 | , allocator<test::movable_and_copyable_int> >; |
38 | |
39 | } //namespace boost { |
40 | } //namespace container { |
41 | |
42 | int main() |
43 | { |
44 | return 0; |
45 | } |
46 | |
47 |