Created
June 14, 2014 13:48
-
-
Save mvirkkunen/985d0495873325d56f14 to your computer and use it in GitHub Desktop.
Damn it C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recent_msgs.erase( | |
std::remove_if( | |
recent_msgs.begin(), | |
recent_msgs.end(), | |
[&queue](line::Message &rm) { | |
auto r = find_if( | |
queue->begin(), | |
queue->end(), | |
[&rm](line::Message &qm) { return qm.id == rm.id; }); | |
return (r != queue->end()); | |
}), | |
recent_msgs.end()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment