diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-11-03 13:08:44 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-11-03 13:08:44 +1100 |
| commit | 7577fa1b668ea81eb9b7b9af690a4161187129dd (patch) | |
| tree | d73e2d1255d9efdec8762cb6f51e4bd765598d0d /src/insert_completer.cc | |
| parent | c889c0329caad7890480c3e3103b49830b8cb7e3 (diff) | |
Use explicit target types for gather calls to bypass clang regression
Since clang-16 there has been a regression in the P0522R0 support.
(Bug report at https://github.com/llvm/llvm-project/issue/63281)
Closes #4892
Diffstat (limited to 'src/insert_completer.cc')
| -rw-r--r-- | src/insert_completer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc index c18b3961..967131d9 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -123,9 +123,9 @@ InsertCompletion complete_word(const SelectionList& sels, }; auto& word_db = get_word_db(buffer); - Vector<RankedMatchAndBuffer> matches = word_db.find_matching(prefix) - | transform([&](auto& m) { return RankedMatchAndBuffer{m, &buffer}; }) - | gather<Vector>(); + auto matches = word_db.find_matching(prefix) + | transform([&](auto& m) { return RankedMatchAndBuffer{m, &buffer}; }) + | gather<Vector<RankedMatchAndBuffer>>(); // Remove words that are being edited for (auto& word_count : sel_word_counts) { |
