mirror of
https://github.com/microsoft/GSL.git
synced 2026-07-10 18:40:49 +02:00
std::hash support for gsl::not_null.
This commit is contained in:
+3
-3
@@ -200,11 +200,11 @@ private:
|
||||
namespace std
|
||||
{
|
||||
template<class T>
|
||||
struct hash<gsl::not_null<T *>>
|
||||
struct hash<gsl::not_null<T>>
|
||||
{
|
||||
size_t operator()(const gsl::not_null<T *> & value) const
|
||||
size_t operator()(const gsl::not_null<T> & value) const
|
||||
{
|
||||
return hash<T *>{}(value);
|
||||
return hash<T>{}(value);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user