[zeromq-dev] [PATCH] more iterator invalidation patches
jon at totient.co.uk
Sun May 8 00:41:29 CEST 2011
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...
Size: 1952 bytes
Desc: not available
More information about the zeromq-dev