]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/unordered/test/exception/copy_exception_tests.cpp
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)
6 #include "./containers.hpp"
7 #include "../helpers/random_values.hpp"
9 template <typename T
> inline void avoid_unused_warning(T
const&) {}
11 test::seed_t
initialize_seed(73041);
14 struct copy_test1
: public test::exception_base
20 avoid_unused_warning(y
);
25 struct copy_test2
: public test::exception_base
27 test::random_values
<T
> values
;
30 copy_test2() : values(5), x(values
.begin(), values
.end()) {}
34 avoid_unused_warning(y
);
39 struct copy_test3
: public test::exception_base
41 test::random_values
<T
> values
;
44 copy_test3() : values(100), x(values
.begin(), values
.end()) {}
48 avoid_unused_warning(y
);
53 struct copy_with_allocator_test
: public test::exception_base
55 test::random_values
<T
> values
;
57 test::exception::allocator
<test::exception::object
> allocator
;
59 copy_with_allocator_test() : values(100), x(values
.begin(), values
.end()) {}
63 avoid_unused_warning(y
);
68 (copy_test1
)(copy_test2
)(copy_test3
)(copy_with_allocator_test
),