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/map.hpp>
12
13 struct empty
14 {
operator ==(const empty &,const empty &)15 friend bool operator == (const empty &, const empty &){ return true; }
operator <(const empty &,const empty &)16 friend bool operator < (const empty &, const empty &){ return true; }
17 };
18
19 template class ::boost::container::map<empty, empty>;
20 template class ::boost::container::multimap<empty, empty>;
21
22 volatile ::boost::container::map<empty, empty> dummy;
23 volatile ::boost::container::multimap<empty, 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 typedef std::pair<const test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t;
34
35 //Explicit instantiation to detect compilation errors
36
37 //map
38 template class map
39 < test::movable_and_copyable_int
40 , test::movable_and_copyable_int
41 , std::less<test::movable_and_copyable_int>
42 , test::simple_allocator< pair_t >
43 >;
44
45 template class map
46 < test::movable_and_copyable_int
47 , test::movable_and_copyable_int
48 , std::less<test::movable_and_copyable_int>
49 , adaptive_pool< pair_t >
50 >;
51 }} //boost::container
52
main()53 int main()
54 {
55 return 0;
56 }
57