From 57f9090670763a9a26b3d24e46f9d06a08465c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 26 Sep 2018 01:07:21 +0200 Subject: [PATCH] Add hash_value --- test/emplace_test.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/emplace_test.hpp b/test/emplace_test.hpp index cd8147b..f017d95 100644 --- a/test/emplace_test.hpp +++ b/test/emplace_test.hpp @@ -63,6 +63,9 @@ class EmplaceInt friend bool operator!=(const EmplaceInt &l, const EmplaceInt &r) { return !(l == r); } + friend std::size_t hash_value(const EmplaceInt &v) + { return std::size_t(v.a_); } + friend std::ostream &operator <<(std::ostream &os, const EmplaceInt &v) { os << "EmplaceInt: " << v.a_ << ' ' << v.b_ << ' ' << v.c_ << ' ' << v.d_ << ' ' << v.e_;