[zeromq-dev] Patch for select.cpp

Mikael Helbo Kjær mhk at designtech.dk
Tue Aug 31 10:56:08 CEST 2010


Hi 

I kept getting runtime errors from my SCL enabled STL library in MSVC 2008 SP1 due to the way select.cpp implemented its erase of retired fd's. 

I've implemented a patch and the STL library no longer complains of any errors in my tests. However this has only been tested on 32-bit Windows so far, but as far as I know the patch uses a normal way to handle erasure of iterated elements in a vector and as such should not be platform or STL library specific. But please look it over as it might be useful for the library.

The attached patch is offered by me and my employer under the MIT/X11 license.

All the best
Mikael H. Kjaer
IT Engineer @ Designtech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select.cpp.diff
Type: application/octet-stream
Size: 743 bytes
Desc: select.cpp.diff
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100831/916548e7/attachment.obj>


More information about the zeromq-dev mailing list