• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/container_hash/hash.hpp>
7 
8 namespace test
9 {
10     struct base {};
hash_value(base const &)11     std::size_t hash_value(base const&) { return 0; }
12 
operator basetest::converts13     struct converts { operator base() const { return base(); } };
14 }
15 
main()16 int main() {
17     boost::hash<test::converts> hash;
18     test::converts x;
19 
20     hash(x);
21 }
22