]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/functional/hash/test/implicit_test.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / functional / hash / test / implicit_test.cpp
1
2 // Copyright 2010 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
6 #include <boost/functional/hash.hpp>
7
8 namespace test
9 {
10 struct base {};
11 std::size_t hash_value(base const&) { return 0; }
12
13 struct converts { operator base() const { return base(); } };
14 }
15
16 int main() {
17 boost::hash<test::converts> hash;
18 test::converts x;
19
20 hash(x);
21 }