2
0
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:
Jiachen YANG
2019-09-08 00:13:40 +09:00
committed by John Preston
parent 684cfa16b8
commit 9d850b71e7
6 changed files with 13 additions and 9 deletions

View File

@@ -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) {