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/string.hpp> |
12 | |
13 | template class ::boost::container::basic_string<char>; |
14 | volatile ::boost::container::basic_string<char> dummy; |
15 | |
16 | #include <boost/container/vector.hpp> |
17 | #include "dummy_test_allocator.hpp" |
18 | |
19 | namespace boost { |
20 | namespace container { |
21 | |
22 | typedef test::simple_allocator<char> SimpleCharAllocator; |
23 | typedef basic_string<char, std::char_traits<char>, SimpleCharAllocator> SimpleString; |
24 | typedef test::simple_allocator<SimpleString> SimpleStringAllocator; |
25 | typedef test::simple_allocator<wchar_t> SimpleWCharAllocator; |
26 | typedef basic_string<wchar_t, std::char_traits<wchar_t>, SimpleWCharAllocator> SimpleWString; |
27 | typedef test::simple_allocator<SimpleWString> SimpleWStringAllocator; |
28 | |
29 | //Explicit instantiations of container::basic_string |
30 | template class basic_string<char, std::char_traits<char>, SimpleCharAllocator>; |
31 | template class basic_string<wchar_t, std::char_traits<wchar_t>, SimpleWCharAllocator>; |
32 | template class basic_string<char, std::char_traits<char>, std::allocator<char> >; |
33 | template class basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >; |
34 | |
35 | //Explicit instantiation of container::vectors of container::strings |
36 | template class vector<SimpleString, SimpleStringAllocator>; |
37 | template class vector<SimpleWString, SimpleWStringAllocator>; |
38 | |
39 | }} |
40 | |
41 | int main() |
42 | { |
43 | return 0; |
44 | } |
45 | |