From 62392a1c7ba5413d4983c1742425bd83a05b526d Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 28 Sep 2023 21:28:37 +0200 Subject: [PATCH] [FIX] take_until_view_test mutable refers to the capture --- test/unit/io/views/detail/take_until_view_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/io/views/detail/take_until_view_test.cpp b/test/unit/io/views/detail/take_until_view_test.cpp index c1d459a50d..8f34f70146 100644 --- a/test/unit/io/views/detail/take_until_view_test.cpp +++ b/test/unit/io/views/detail/take_until_view_test.cpp @@ -131,9 +131,11 @@ TEST(view_take_until, concepts) do_concepts(adapt, true); // mutable adapters make the view lose const-iterability + char c2 = 'a'; auto adapt2 = seqan3::detail::take_until( - [](char c) mutable + [c2](char c) mutable { + c2 = 'b'; return c == '\n'; }); do_concepts(adapt2, false);