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/slist.hpp>
12
13struct empty
14{
15 friend bool operator == (const empty &, const empty &){ return true; }
16 friend bool operator < (const empty &, const empty &){ return true; }
17};
18
19template class ::boost::container::slist<empty>;
20volatile ::boost::container::slist<empty> dummy;
21
22#include <boost/container/allocator.hpp>
23#include <boost/container/node_allocator.hpp>
24#include "movable_int.hpp"
25#include "dummy_test_allocator.hpp"
26
27namespace boost {
28namespace container {
29
30//Explicit instantiation to detect compilation errors
31template class boost::container::slist
32 < test::movable_and_copyable_int
33 , test::simple_allocator<test::movable_and_copyable_int> >;
34
35template class boost::container::slist
36 < test::movable_and_copyable_int
37 , node_allocator<test::movable_and_copyable_int> >;
38
39}}
40
41int main()
42{
43 return 0;
44}
45

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