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/xrep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xrep.cpp') diff --git a/src/xrep.cpp b/src/xrep.cpp index a9e2cc9..b0ac601 100644 --- a/src/xrep.cpp +++ b/src/xrep.cpp @@ -56,7 +56,7 @@ void zmq::xrep_t::xattach_pipes (reader_t *inpipe_, writer_t *outpipe_, // TODO: What if new connection has same peer identity as the old one? outpipe_t outpipe = {outpipe_, true}; - bool ok = outpipes.insert (std::make_pair ( + bool ok = outpipes.insert (outpipes_t::value_type ( peer_identity_, outpipe)).second; zmq_assert (ok); -- cgit v1.2.3