From f9e6d94be56fab6d1d8e281e48bb5d6091562acb Mon Sep 17 00:00:00 2001 From: Martin Pales Date: Thu, 14 Oct 2010 12:02:05 +0200 Subject: 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 --- src/poller_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_) -- cgit v1.2.3