Merge pull request #913 from jwakely/notnull_hash

Pass correct value to std::hash
This commit is contained in:
Jordan Maples [MSFT] authored and GitHub committed 2020-08-20 15:32:22 -07:00
commit 6aa755e9ce
1 file changed
+2 -2
+2 -2
View File
@@ -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