Commit bdf7dabd authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

use pre-increment for non-trivial trypes

parent 9b950a7c
......@@ -244,7 +244,7 @@ namespace gem { namespace thread {
//std::cerr << "cancelling "<< (int)ID <<" from TODO" << std::endl;
m_pimpl->m_todo.lock();
for(it=m_pimpl->q_todo.begin(); it!=m_pimpl->q_todo.end(); it++) {
for(it=m_pimpl->q_todo.begin(); it!=m_pimpl->q_todo.end(); ++it) {
if(it->first == ID) {
m_pimpl->q_todo.erase(it);
success=true;
......
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