diff options
| author | Jonathan Wakely <jwakely@redhat.com> | 2020-08-13 12:55:17 +0100 |
|---|---|---|
| committer | Jonathan Wakely <jwakely@redhat.com> | 2020-08-13 12:59:01 +0100 |
| commit | e09326eefde814f6487d078c979918461de15158 (patch) | |
| tree | 9897a1b8a51285f3c7e72d6e7d989b3fbbf5d1b7 | |
| parent | 0c80f51f7c5ae947411906ae5600d46d56e491bf (diff) | |
| download | platform_external_Microsoft-GSL-e09326eefde814f6487d078c979918461de15158.tar.gz platform_external_Microsoft-GSL-e09326eefde814f6487d078c979918461de15158.tar.bz2 platform_external_Microsoft-GSL-e09326eefde814f6487d078c979918461de15158.zip | |
Pass correct value to std::hash
| -rw-r--r-- | include/gsl/pointers | 4 |
1 files 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 <class T> struct hash<gsl::not_null<T>> { - std::size_t operator()(const gsl::not_null<T>& value) const { return hash<T>{}(value); } + std::size_t operator()(const gsl::not_null<T>& value) const { return hash<T>{}(value.get()); } }; } // namespace std @@ -280,7 +280,7 @@ namespace std template <class T> struct hash<gsl::strict_not_null<T>> { - std::size_t operator()(const gsl::strict_not_null<T>& value) const { return hash<T>{}(value); } + std::size_t operator()(const gsl::strict_not_null<T>& value) const { return hash<T>{}(value.get()); } }; } // namespace std |
