Make BorrowedPtr hashable.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-06-02 16:03:47 +02:00
1 parent 4323e59ed4
commit 893aa969d5
1 file changed
+8
+8
View File
@@ -52,4 +52,12 @@ namespace ArbUt {
};
}
namespace std {
template <class T> struct hash<ArbUt::BorrowedPtr<T>> {
std::size_t operator()(const ArbUt::BorrowedPtr<T>& k) const { return (size_t)k.GetRaw(); }
};
}
#endif // ARBUTILS_BORROWEDPTR_HPP