← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/net-boost-asio into lp:widelands

 

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.


References