blob: 317d8dee74552e06c76a3a8593523eae5b7e11b3 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001
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
8namespace 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
16int main() {
17 ndnboost::hash<test::converts> hash;
18 test::converts x;
19
20 hash(x);
21}