Skip to content

Commit

Permalink
C++03 fix for std::map erase without iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmocuz committed May 5, 2015
1 parent b8809bc commit 4c12678
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified Manual/DomoticzManual.docx
Binary file not shown.
Binary file modified Manual/DomoticzManual.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion webserver/connection_manager.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4c12678

Please sign in to comment.