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. -- https://code.launchpad.net/~widelands-dev/widelands/net-boost-asio/+merge/324364 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/net-boost-asio. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp