diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-09-27 11:18:21 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-09-27 11:18:21 +0200 |
commit | 16c3884a61b146040277ec61bfdbc553c883b4d6 (patch) | |
tree | 1de5c53f9a02124409f7c615c8921792de652166 /src/ctx.cpp | |
parent | e2f834d2947ad7e7f4e6bfb5be653af8b8a2a576 (diff) |
MSVC build fixed
Diffstat (limited to 'src/ctx.cpp')
-rw-r--r-- | src/ctx.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ctx.cpp b/src/ctx.cpp index 7ed924d..eb4b412 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -316,7 +316,13 @@ void zmq::ctx_t::dezombify () for (zombies_t::iterator it = zombies.begin (); it != zombies.end ();) { uint32_t slot = (*it)->get_slot (); if ((*it)->dezombify ()) { +#if defined _MSC_VER + + // HP implementation of STL requires doing it this way... + it = zombies.erase (it); +#else zombies.erase (it); +#endif empty_slots.push_back (slot); slots [slot] = NULL; } |