std::hash support for gsl::not_null.
This commit is contained in:
1 parent
a544ada8fe
commit
8e2acc9c90
1 file changed
+3
-3
+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