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/string_utils.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/string_utils.cc')
| -rw-r--r-- | src/string_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc index 0b0de19e..bc368978 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -438,7 +438,7 @@ UnitTest test_string{[]() kak_assert(StringView{"youpi"}.ends_with("youpi")); kak_assert(not StringView{"youpi"}.ends_with("oup")); - auto wrapped = "wrap this paragraph\n respecting whitespaces and much_too_long_words" | wrap_at(16) | gather<Vector>(); + auto wrapped = "wrap this paragraph\n respecting whitespaces and much_too_long_words" | wrap_at(16) | gather<Vector<String>>(); kak_assert(wrapped.size() == 6); kak_assert(wrapped[0] == "wrap this"); kak_assert(wrapped[1] == "paragraph"); @@ -447,7 +447,7 @@ UnitTest test_string{[]() kak_assert(wrapped[4] == "much_too_long_wo"); kak_assert(wrapped[5] == "rds"); - auto wrapped2 = "error: unknown type" | wrap_at(7) | gather<Vector>(); + auto wrapped2 = "error: unknown type" | wrap_at(7) | gather<Vector<String>>(); kak_assert(wrapped2.size() == 3); kak_assert(wrapped2[0] == "error:"); kak_assert(wrapped2[1] == "unknown"); |
