Remove captures

This commit is contained in:
Martin Hořeňovský
2025-11-09 11:41:27 +01:00
parent 41ed8b702a
commit 2e3214709a

View File

@@ -27,9 +27,9 @@ TEST_CASE( "Failed REQUIRE in the main thread is fine" ) {
std::vector<std::thread> threads; std::vector<std::thread> threads;
for ( size_t t = 0; t < 4; ++t) { for ( size_t t = 0; t < 4; ++t) {
threads.emplace_back( [t]() { threads.emplace_back( [t]() {
CAPTURE(t); // CAPTURE(t);
for (size_t i = 0; i < 1'000; ++i) { for (size_t i = 0; i < 1'000; ++i) {
CAPTURE(i); // CAPTURE(i);
CHECK( false ); CHECK( false );
CHECK( true ); CHECK( true );
} }