diff --git a/src/ctx.cpp b/src/ctx.cpp index b736b18b..2b64c510 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -725,7 +725,7 @@ void zmq::ctx_t::unregister_endpoints (const socket_base_t *const socket_) end = _endpoints.end (); it != end;) { if (it->second.socket == socket_) -#if __cplusplus >= 201103L +#if __cplusplus >= 201103L || (defined _MSC_VER && _MSC_VER >= 1700) it = _endpoints.erase (it); #else _endpoints.erase (it++); diff --git a/src/options.hpp b/src/options.hpp index 3dd24b90..556eea46 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -47,7 +47,7 @@ #include #endif -#if __cplusplus >= 201103L +#if __cplusplus >= 201103L || (defined _MSC_VER && _MSC_VER >= 1700) #include #endif diff --git a/src/radio.cpp b/src/radio.cpp index 5e4ee94f..aa9f100a 100644 --- a/src/radio.cpp +++ b/src/radio.cpp @@ -126,7 +126,7 @@ void zmq::radio_t::xpipe_terminated (pipe_t *pipe_) end = _subscriptions.end (); it != end;) { if (it->second == pipe_) { -#if __cplusplus >= 201103L +#if __cplusplus >= 201103L || (defined _MSC_VER && _MSC_VER >= 1700) it = _subscriptions.erase (it); #else _subscriptions.erase (it++);