From 16c3884a61b146040277ec61bfdbc553c883b4d6 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 27 Sep 2010 11:18:21 +0200 Subject: MSVC build fixed --- src/ctx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ctx.cpp') 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; } -- cgit v1.2.3