gcc/
* hash-traits.h (typed_noop_remove): Don't require a pointer type.
From-SVN: r224963
+2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
+
+ * hash-traits.h (typed_noop_remove): Don't require a pointer type.
+
2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
* hash-table.h (has_is_deleted, is_deleted_helper): Delete.
template <typename Type>
struct typed_noop_remove
{
- static inline void remove (Type *p);
+ static inline void remove (Type &);
};
template <typename Type>
inline void
-typed_noop_remove <Type>::remove (Type *p ATTRIBUTE_UNUSED)
+typed_noop_remove <Type>::remove (Type &)
{
}
is deleted. */
template <typename T>
-struct nofree_ptr_hash : pointer_hash <T>, typed_noop_remove <T> {};
+struct nofree_ptr_hash : pointer_hash <T>, typed_noop_remove <T *> {};
/* Traits for pointer elements that should be freed via free() when an
element is deleted. */