Skip to content

Commit

Permalink
[FIX] take_until_view_test
Browse files Browse the repository at this point in the history
mutable refers to the capture
  • Loading branch information
eseiler committed Sep 28, 2023
1 parent 3c8bc38 commit ae5be12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/io/views/detail/take_until_view_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae5be12

Please sign in to comment.