Skip to content

Commit 62392a1

Browse files
committed
[FIX] take_until_view_test
mutable refers to the capture
1 parent 64dc64b commit 62392a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/io/views/detail/take_until_view_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,11 @@ TEST(view_take_until, concepts)
131131
do_concepts(adapt, true);
132132

133133
// mutable adapters make the view lose const-iterability
134+
char c2 = 'a';
134135
auto adapt2 = seqan3::detail::take_until(
135-
[](char c) mutable
136+
[c2](char c) mutable
136137
{
138+
c2 = 'b';
137139
return c == '\n';
138140
});
139141
do_concepts(adapt2, false);

0 commit comments

Comments
 (0)