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

source code of boost/libs/container/test/explicit_inst_string_test.cpp