Skip to content

Commit

Permalink
Use generic capture
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Aug 22, 2022
1 parent bea37de commit 49082ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/JSONTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ TEST_CASE("variableBasedModifiedSnapshot", "[auxiliary]")
}
}

auto testRead = [](std::vector<size_t> const &requiredIterations) {
/*
* Need generic capture here since the compilers are being
* annoying otherwise.
*/
auto testRead = [&](std::vector<size_t> const &requiredIterations) {
Series readSeries(file, Access::READ_ONLY);
size_t counter = 0;
for (auto const &iteration : readSeries.readIterations())
Expand Down

0 comments on commit 49082ee

Please sign in to comment.