Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame^] | 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 | ndnboost::hash<test::converts> hash; |
| 18 | test::converts x; |
| 19 | |
| 20 | hash(x); |
| 21 | } |