Brian Silverman | fad8f55 | 2018-08-04 23:36:19 -0700 | [diff] [blame^] | 1 | ////////////////////////////////////////////////////////////////////////////// |
| 2 | // |
| 3 | // (C) Copyright Ion Gaztanaga 2004-2013. 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 | #include <boost/container/detail/tree.hpp> |
| 11 | #include <boost/container/adaptive_pool.hpp> |
| 12 | |
| 13 | #include "movable_int.hpp" |
| 14 | #include "dummy_test_allocator.hpp" |
| 15 | |
| 16 | using namespace boost::container; |
| 17 | |
| 18 | typedef std::pair<const test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t; |
| 19 | |
| 20 | namespace boost { |
| 21 | namespace container { |
| 22 | |
| 23 | //Explicit instantiation to detect compilation errors |
| 24 | |
| 25 | namespace dtl { |
| 26 | |
| 27 | //Instantiate base class as previous instantiations don't instantiate inherited members |
| 28 | template class tree |
| 29 | < pair_t |
| 30 | , select1st<test::movable_and_copyable_int> |
| 31 | , std::less<test::movable_and_copyable_int> |
| 32 | , test::simple_allocator<pair_t> |
| 33 | , tree_assoc_defaults |
| 34 | >; |
| 35 | |
| 36 | template class tree |
| 37 | < pair_t |
| 38 | , select1st<test::movable_and_copyable_int> |
| 39 | , std::less<test::movable_and_copyable_int> |
| 40 | , std::allocator<pair_t> |
| 41 | , tree_assoc_defaults |
| 42 | >; |
| 43 | |
| 44 | template class tree |
| 45 | < pair_t |
| 46 | , select1st<test::movable_and_copyable_int> |
| 47 | , std::less<test::movable_and_copyable_int> |
| 48 | , adaptive_pool<pair_t> |
| 49 | , tree_assoc_defaults |
| 50 | >; |
| 51 | |
| 52 | template class tree |
| 53 | < test::movable_and_copyable_int |
| 54 | , identity<test::movable_and_copyable_int> |
| 55 | , std::less<test::movable_and_copyable_int> |
| 56 | , test::simple_allocator<test::movable_and_copyable_int> |
| 57 | , tree_assoc_defaults |
| 58 | >; |
| 59 | |
| 60 | template class tree |
| 61 | < test::movable_and_copyable_int |
| 62 | , identity<test::movable_and_copyable_int> |
| 63 | , std::less<test::movable_and_copyable_int> |
| 64 | , std::allocator<test::movable_and_copyable_int> |
| 65 | , tree_assoc_defaults |
| 66 | >; |
| 67 | |
| 68 | template class tree |
| 69 | < test::movable_and_copyable_int |
| 70 | , identity<test::movable_and_copyable_int> |
| 71 | , std::less<test::movable_and_copyable_int> |
| 72 | , adaptive_pool<test::movable_and_copyable_int> |
| 73 | , tree_assoc_defaults |
| 74 | >; |
| 75 | |
| 76 | } //dtl { |
| 77 | |
| 78 | }} //boost::container |
| 79 | |
| 80 | int main () |
| 81 | { |
| 82 | return 0; |
| 83 | } |