diff options
author | Martin Pales <m.pales@gmail.com> | 2010-10-14 12:02:05 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-10-14 12:02:05 +0200 |
commit | f9e6d94be56fab6d1d8e281e48bb5d6091562acb (patch) | |
tree | f25be4cec2b20c128676ad25790408ea7b957b72 | |
parent | cafcdbbe2bc9c78899568bb6cb957b700e12c66b (diff) |
zmq::poller_base_t : workaround for sunstudio compiler in add_timer()
A minor workaround to resolve compilation error with sunstudio compiler,
which does not yet support member templates for std::multimap.
Signed-off-by: Martin Pales <m.pales@gmail.com>
-rw-r--r-- | src/poller_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poller_base.cpp b/src/poller_base.cpp index 661b964..c5292d2 100644 --- a/src/poller_base.cpp +++ b/src/poller_base.cpp @@ -48,7 +48,7 @@ void zmq::poller_base_t::add_timer (int timeout_, i_poll_events *sink_, int id_) { uint64_t expiration = clock.now_ms () + timeout_; timer_info_t info = {sink_, id_}; - timers.insert (std::make_pair (expiration, info)); + timers.insert (timers_t::value_type (expiration, info)); } void zmq::poller_base_t::cancel_timer (i_poll_events *sink_, int id_) |