From e09326eefde814f6487d078c979918461de15158 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 13 Aug 2020 12:55:17 +0100 Subject: [PATCH] Pass correct value to std::hash --- include/gsl/pointers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsl/pointers b/include/gsl/pointers index bb80b92..2418ec7 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -177,7 +177,7 @@ namespace std template struct hash> { - std::size_t operator()(const gsl::not_null& value) const { return hash{}(value); } + std::size_t operator()(const gsl::not_null& value) const { return hash{}(value.get()); } }; } // namespace std @@ -280,7 +280,7 @@ namespace std template struct hash> { - std::size_t operator()(const gsl::strict_not_null& value) const { return hash{}(value); } + std::size_t operator()(const gsl::strict_not_null& value) const { return hash{}(value.get()); } }; } // namespace std