use reference in range for loop

This commit is contained in:
Benjamin Sergeant 2020-06-11 13:50:37 -07:00
parent 7603d1a71b
commit ca7344d9dc

View File

@ -112,7 +112,7 @@ namespace ix
it.second.erase(socket.get()); it.second.erase(socket.get());
} }
for (auto it : _subscribers) for (auto&& it : _subscribers)
{ {
std::stringstream ss; std::stringstream ss;
ss << "Subscription id: " << it.first << " #subscribers: " << it.second.size(); ss << "Subscription id: " << it.first << " #subscribers: " << it.second.size();