]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | // Copyright 2006-2009 Daniel James. | |
3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
b32b8144 | 6 | // clang-format off |
7c673cae FG |
7 | #include "../helpers/prefix.hpp" |
8 | #include <boost/unordered_set.hpp> | |
9 | #include <boost/unordered_map.hpp> | |
10 | #include "../helpers/postfix.hpp" | |
b32b8144 | 11 | // clang-format on |
7c673cae | 12 | |
b32b8144 FG |
13 | void foo(boost::unordered_set<int>& x1, boost::unordered_map<int, int>& x2, |
14 | boost::unordered_multiset<int>& x3, boost::unordered_multimap<int, int>& x4) | |
7c673cae FG |
15 | { |
16 | #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613)) | |
b32b8144 FG |
17 | struct dummy |
18 | { | |
19 | boost::unordered_set<int> x1; | |
20 | boost::unordered_map<int, int> x2; | |
21 | boost::unordered_multiset<int> x3; | |
22 | boost::unordered_multimap<int, int> x4; | |
23 | }; | |
7c673cae FG |
24 | #endif |
25 | ||
b32b8144 FG |
26 | x1.insert(1); |
27 | x2[2] = 2; | |
28 | x3.insert(3); | |
29 | x4.insert(std::make_pair(4, 5)); | |
7c673cae | 30 | } |