From 39d9f3ae470ba18374005f27bfaa27978c7ee284 Mon Sep 17 00:00:00 2001 From: "David Fields (ANALOG)" Date: Wed, 8 Jan 2020 12:52:54 -0800 Subject: [PATCH] Revert "Generalize solution to enable use for other POD types" This reverts commit 4592200103f995a1ffa7e9bcf1472f8e571eb833. --- strings/base_std_hash.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/strings/base_std_hash.h b/strings/base_std_hash.h index 91d43272b..2324c85f2 100644 --- a/strings/base_std_hash.h +++ b/strings/base_std_hash.h @@ -47,4 +47,12 @@ namespace std template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; + + template<> struct hash + { + size_t operator()(winrt::guid const& value) const noexcept + { + return winrt::impl::hash_data(&value, sizeof(value)); + } + } }