From b7386f5b5031b2e75fb4370069935d7f6a0eedbb Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 14 Oct 2010 12:13:52 +0200 Subject: To insert to associateive STL containers value_type used instead of make_pair Signed-off-by: Martin Sustrik --- src/ctx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ctx.cpp') diff --git a/src/ctx.cpp b/src/ctx.cpp index eb4b412..f6e62a7 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -247,8 +247,8 @@ int zmq::ctx_t::register_endpoint (const char *addr_, { endpoints_sync.lock (); - bool inserted = endpoints.insert (std::make_pair (std::string (addr_), - socket_)).second; + bool inserted = endpoints.insert (endpoints_t::value_type ( + std::string (addr_), socket_)).second; if (!inserted) { errno = EADDRINUSE; endpoints_sync.unlock (); -- cgit v1.2.3