[haiku-commits] Re: haiku: hrev53379 - src/kits/media

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 16 Aug 2019 11:54:03 -0400

On Fri, Aug 16, 2019 at 10:18 AM Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:


Out of curiosity: why doesn't std::map work on both gcc2 and gcc8?
What's the issue here?

If you are really curious, I added some debug printing and if I
deleted something while iterating the iterator would sometimes skip
forward, and sometimes skip backwards. So I would either miss deleting
something (which is bad), or repeatedly check the same item at the
start of the list when it was not associated with the removed port
(which is not as bad but slows it down.)

Maybe there was a way to get it to work, but switching to our HashMap
was easier.

-- 
Regards,
Ryan

Other related posts: