Merge pull request #147 from samuel3/master

std::hash support for gsl::not_null.
This commit is contained in:
Neil MacIntosh 2015-10-19 13:20:53 -07:00
commit 1e36db9695

View File

@ -197,6 +197,19 @@ private:
} // namespace gsl } // namespace gsl
namespace std
{
template<class T>
struct hash<gsl::not_null<T>>
{
size_t operator()(const gsl::not_null<T> & value) const
{
return hash<T>{}(value);
}
};
} // namespace std
#ifdef _MSC_VER #ifdef _MSC_VER
#undef constexpr #undef constexpr