Files
container_hash/test/implicit_fail_test.cpp
2010-07-06 23:32:37 +00:00

16 lines
295 B
C++

#include <boost/functional/hash.hpp>
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);
}