Skip to content

Commit 42eab04

Browse files
Scoped
1 parent 5a3bbea commit 42eab04

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/channel_test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,10 @@ TEST(ChannelTest, Transform)
382382

383383
// Transform input channel values from movable_only to int by multiplying by 2 and write to output channel
384384
const auto double_transformer = [&input_chan, &output_chan]() {
385-
std::transform(input_chan.begin(), input_chan.end(), msd::back_inserter(output_chan),
386-
[](auto&& value) { return value.getValue() * 2; });
385+
{
386+
std::transform(input_chan.begin(), input_chan.end(), msd::back_inserter(output_chan),
387+
[](auto&& value) { return value.getValue() * 2; });
388+
}
387389

388390
output_chan.close();
389391
};

0 commit comments

Comments
 (0)