| 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/stable_vector.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::stable_vector<empty>; |
| 20 | volatile ::boost::container::stable_vector<empty> dummy; |
| 21 | |
| 22 | #include <boost/container/node_allocator.hpp> |
| 23 | #include "movable_int.hpp" |
| 24 | #include "dummy_test_allocator.hpp" |
| 25 | |
| 26 | namespace boost { |
| 27 | namespace container { |
| 28 | |
| 29 | //Explicit instantiation to detect compilation errors |
| 30 | template class stable_vector<test::movable_and_copyable_int, |
| 31 | test::simple_allocator<test::movable_and_copyable_int> >; |
| 32 | |
| 33 | template class stable_vector |
| 34 | < test::movable_and_copyable_int |
| 35 | , node_allocator<test::movable_and_copyable_int> >; |
| 36 | |
| 37 | template class stable_vector_iterator<int*, false>; |
| 38 | template class stable_vector_iterator<int*, true >; |
| 39 | |
| 40 | }} |
| 41 | |
| 42 | int main() |
| 43 | { |
| 44 | return 0; |
| 45 | } |
| 46 |
