boost/libs/container_hash/test/implicit_test.cpp

22 lines
487 B
C++
Raw Permalink Normal View History

2018-01-12 21:47:58 +01:00
// Copyright 2010 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
2021-10-05 21:37:46 +02:00
#include <boost/container_hash/hash.hpp>
2018-01-12 21:47:58 +01:00
namespace test
{
struct base {};
std::size_t hash_value(base const&) { return 0; }
struct converts { operator base() const { return base(); } };
}
int main() {
boost::hash<test::converts> hash;
test::converts x;
hash(x);
}