Skip to content
Snippets Groups Projects
Commit 1979c02d authored by Brad King's avatar Brad King
Browse files

hashtable: Poison operator= on internal node type

Declare a private _Hashtable_node<_Val>::operator= without
implementation to ensure no code tries to assign nodes.
The hash_map uses "pair<const _Key,_Tp>" as the value type
so the const key cannot be assigned.

Change-Id: If772e1588c9504df450c18eb0d36dc024db9f2da
parent 8b085635
No related branches found
No related tags found
No related merge requests found
......@@ -310,6 +310,9 @@ struct _Hashtable_node
{
_Hashtable_node* _M_next;
_Val _M_val;
void public_method_to_quiet_warning_about_all_methods_private();
private:
void operator=(_Hashtable_node<_Val> const&); // poison node assignment
};
template <class _Val, class _Key, class _HashFcn,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment