From 7577fa1b668ea81eb9b7b9af690a4161187129dd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 3 Nov 2023 13:08:44 +1100 Subject: 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 --- src/string_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string_utils.cc') 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(); + auto wrapped = "wrap this paragraph\n respecting whitespaces and much_too_long_words" | wrap_at(16) | gather>(); 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(); + auto wrapped2 = "error: unknown type" | wrap_at(7) | gather>(); kak_assert(wrapped2.size() == 3); kak_assert(wrapped2[0] == "error:"); kak_assert(wrapped2[1] == "unknown"); -- cgit v1.2.3