[zeromq-dev] [PATCH] more iterator invalidation patches

Jon Dyte jon at totient.co.uk
Sun May 8 00:41:29 CEST 2011

Hi Martin

Having looked at the recent patches for the iterator issue in xrep.cpp

the iterators are not handled correctly when using erase on the 
container in two places on
the inpipes and outpipes collections respectively.

You can't call ++ on an iterator after it's been used in a call to erase 
so you have to handle it a bit differently
whether it's a sequential or associative container.

This patch should fix those two cases.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-make-sure-iterators-are-handled-correctly-after-call.patch
Type: text/x-patch
Size: 1952 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110507/053dbb06/attachment.bin>

More information about the zeromq-dev mailing list