From adc740da5a8ca9414ea68a8d6a416f355879f331 Mon Sep 17 00:00:00 2001 From: KimLS Date: Fri, 19 Dec 2014 17:52:53 -0800 Subject: [PATCH] Wrong iter type fails on gcc 4.6 --- zone/remote_call_subscribe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/remote_call_subscribe.cpp b/zone/remote_call_subscribe.cpp index 2c73020c7..336669ae8 100644 --- a/zone/remote_call_subscribe.cpp +++ b/zone/remote_call_subscribe.cpp @@ -99,7 +99,7 @@ void RemoteCallSubscriptionHandler::OnEvent(std::string method, std::vector &conns = registered_events[method]; if(conns.size() > 0) { - auto &iter = conns.begin(); + auto iter = conns.begin(); while(iter != conns.end()) { RemoteCall((*iter), func, params); ++iter;