Permalink
Browse files

C++03 fix for std::map erase without iterator

  • Loading branch information...
1 parent b8809bc commit 4c126789b7c541af20e0eb0d54073a4e34268d98 @gizmocuz gizmocuz committed May 5, 2015
Binary file not shown.
Binary file not shown.
@@ -56,7 +56,7 @@ void connection_manager::start(connection_ptr c)
{
if (atime - itt->second > CONNECTION_SESSION_TIMEOUT)
{
- itt = connectedips_.erase(itt);
+ connectedips_.erase(itt++); //C++03 fix
}
else
++itt;

0 comments on commit 4c12678

Please sign in to comment.