Well, this should work:
for (auto& client: clients_) { ... ConnectionId id_to_remove = client.first; ... client.second.deserializer.read_data(buffer, length); ... }
You don't need an explicit iterator to access the first and second element of the pair.
« Back to merge proposal
Well, this should work:
for (auto& client: clients_) {
ConnectionId id_to_remove = client.first;
client. second. deserializer. read_data( buffer, length);
...
...
...
}
You don't need an explicit iterator to access the first and second element of the pair.