mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
be compatible with range-v3 0.9.x/1.0 branch
This made 2 changes to the current code base to be compatible with higher versions of range-v3 library. 1. ranges::iterator_range was renamed to subrange, see https://github.com/ericniebler/range-v3/issues/766 2. PercentCounterItem need an operator== for ranges::sort for some reason
This commit is contained in:
committed by
John Preston
parent
684cfa16b8
commit
9d850b71e7
@@ -764,7 +764,7 @@ void ApplyMegagroupAdmins(
|
||||
}
|
||||
|
||||
auto adding = base::flat_map<UserId, QString>();
|
||||
auto admins = ranges::make_iterator_range(
|
||||
auto admins = ranges::subrange(
|
||||
list.begin(), list.end()
|
||||
) | ranges::view::transform([](const MTPChannelParticipant &p) {
|
||||
const auto userId = p.match([](const auto &data) {
|
||||
|
Reference in New Issue
Block a user