2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

explicitly specify the upper bound in ranges::view::ints

This commit is contained in:
Jiachen YANG
2019-09-10 11:03:18 +09:00
committed by John Preston
parent 8abeb4a9db
commit 56aab1aa07
5 changed files with 6 additions and 6 deletions

View File

@@ -2962,7 +2962,7 @@ void InnerWidget::setupShortcuts() {
Command::ChatPinned4,
Command::ChatPinned5,
};
auto &&pinned = ranges::view::zip(kPinned, ranges::view::ints(0));
auto &&pinned = ranges::view::zip(kPinned, ranges::view::ints(0, ranges::unreachable));
for (const auto [command, index] : pinned) {
request->check(command) && request->handle([=, index = index] {
const auto list = session().data().chatsList()->indexed();