|
@@ -46,13 +46,16 @@ void test_disabled_with_deleter() {
|
|
|
test_hash_disabled_for_type<pointer>();
|
|
|
}
|
|
|
|
|
|
+namespace std {
|
|
|
+
|
|
|
template <class T>
|
|
|
-struct std::hash<min_pointer<T, std::integral_constant<size_t, 1>>> {
|
|
|
- size_t operator()(min_pointer<T, std::integral_constant<size_t, 1>> p) const {
|
|
|
+struct hash<::min_pointer<T, std::integral_constant<size_t, 1>>> {
|
|
|
+ size_t operator()(::min_pointer<T, std::integral_constant<size_t, 1>> p) const {
|
|
|
if (!p) return 0;
|
|
|
return std::hash<T*>{}(std::addressof(*p));
|
|
|
}
|
|
|
};
|
|
|
+}
|
|
|
|
|
|
struct A {};
|
|
|
|