mirror of
https://github.com/boostorg/container_hash.git
synced 2026-01-27 01:22:19 +01:00
16 lines
295 B
C++
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);
|
|
} |