Skip to content

Commit 49082ee

Browse files
committed
Use generic capture
1 parent bea37de commit 49082ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/JSONTest.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ TEST_CASE("variableBasedModifiedSnapshot", "[auxiliary]")
224224
}
225225
}
226226

227-
auto testRead = [](std::vector<size_t> const &requiredIterations) {
227+
/*
228+
* Need generic capture here since the compilers are being
229+
* annoying otherwise.
230+
*/
231+
auto testRead = [&](std::vector<size_t> const &requiredIterations) {
228232
Series readSeries(file, Access::READ_ONLY);
229233
size_t counter = 0;
230234
for (auto const &iteration : readSeries.readIterations())

0 commit comments

Comments
 (0)