Commit d3927be0 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[5078] Use iterator rather than const_iterator with vector::erase.

parent 773a7807
......@@ -191,8 +191,8 @@ CtrlAgentProcess::garbageCollectListeners() {
// related to these listeners. Need to invoke these handlers.
getIoService()->get_io_service().poll();
// Finally, we're ready to remove no longer used listeners.
http_listeners_.erase(http_listeners_.cbegin(),
http_listeners_.cend() - 1);
http_listeners_.erase(http_listeners_.begin(),
http_listeners_.end() - 1);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment