Re: [PATCH] Remove redundant accessors in hash tables

2019-05-16 Thread Jonathan Wakely
On 16/05/19 13:30 +0100, Jonathan Wakely wrote: On 16/05/19 11:05 +0100, Jonathan Wakely wrote: On 16/05/19 07:47 +0200, François Dumont wrote: On 5/15/19 5:37 PM, Jonathan Wakely wrote: François, I noticed that _Hash_code_base and _Hashtable_base have a number of member functions which are ov

Re: [PATCH] Remove redundant accessors in hash tables

2019-05-16 Thread Jonathan Wakely
On 16/05/19 11:05 +0100, Jonathan Wakely wrote: On 16/05/19 07:47 +0200, François Dumont wrote: On 5/15/19 5:37 PM, Jonathan Wakely wrote: François, I noticed that _Hash_code_base and _Hashtable_base have a number of member functions which are overloaded for const and non-const:    const _Equa

Re: [PATCH] Remove redundant accessors in hash tables

2019-05-16 Thread Jonathan Wakely
On 16/05/19 07:47 +0200, François Dumont wrote: On 5/15/19 5:37 PM, Jonathan Wakely wrote: François, I noticed that _Hash_code_base and _Hashtable_base have a number of member functions which are overloaded for const and non-const:    const _Equal&    _M_eq() const { return _EqualEBO::_S_cget(*

Re: [PATCH] Remove redundant accessors in hash tables

2019-05-15 Thread François Dumont
On 5/15/19 5:37 PM, Jonathan Wakely wrote: François, I noticed that _Hash_code_base and _Hashtable_base have a number of member functions which are overloaded for const and non-const:    const _Equal&    _M_eq() const { return _EqualEBO::_S_cget(*this); }    _Equal&    _M_eq() { return _EqualEB

[PATCH] Remove redundant accessors in hash tables

2019-05-15 Thread Jonathan Wakely
François, I noticed that _Hash_code_base and _Hashtable_base have a number of member functions which are overloaded for const and non-const: const _Equal& _M_eq() const { return _EqualEBO::_S_cget(*this); } _Equal& _M_eq() { return _EqualEBO::_S_get(*this); } The non-const ones seem