On Fri, Feb 15, 2019, 7:41 AM Dario Casalinuovo <b.vitruvio@xxxxxxxxx wrote:
Hi,
b7598b65ba6d: HashSet: Make iterator const.
Nothing that uses this API at present needs a const iterator (and
as far as I could see, nothing ever called Remove() on the iterator.)
But this is now how HashMap's API works, so let's be consistent.
Unless I'm missing something, what's the reason for removing Remove()? Is
the problem calling a non-const method to remove the iterator? (now that it
is const, of course) If I got it right, that doesn't seem a design choice,
but looks like lazy programming honestly.