std::hash support for gsl::not_null.

This commit is contained in:
Samuel García Salas 2015-10-17 09:28:05 +02:00
parent a544ada8fe
commit 8e2acc9c90

View File

@ -200,11 +200,11 @@ private:
namespace std namespace std
{ {
template<class T> 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);
} }
}; };