Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[FIX] take_until_view_test
mutable refers to the capture
  • Loading branch information
eseiler committed Sep 29, 2023
commit 62392a1c7ba5413d4983c1742425bd83a05b526d
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