Connections and disconnections are working across different clients

This commit is contained in:
Kayne Ruse
2013-12-07 01:33:27 +11:00
parent 1c032bfc47
commit 3b05476689
5 changed files with 78 additions and 7 deletions
+13
View File
@@ -32,4 +32,17 @@ std::string to_string_custom(int i);
int to_integer_custom(std::string);
//wow
template<typename ContainerT, typename PredicateT>
void erase_if(ContainerT& items, const PredicateT& predicate) {
for(auto it = items.begin(); it != items.end(); /* empty */) {
if(predicate(*it)) {
it = items.erase(it);
}
else {
++it;
}
}
};
#endif