From 87548b778e6172157f230f361292685275316af5 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Tue, 16 Jan 2024 12:27:54 -0500 Subject: [PATCH] another msvc error thrown --- tests/param-queue-tests.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/param-queue-tests.cc b/tests/param-queue-tests.cc index d0c88fe..ee449fa 100644 --- a/tests/param-queue-tests.cc +++ b/tests/param-queue-tests.cc @@ -47,12 +47,12 @@ namespace { bool failed = false; - std::thread producer([&queue] { + std::thread producer([&queue, N] { for (uint32_t i = 0; i < N; ++i) queue.push(i); }); - std::thread consumer([&queue, &failed] { + std::thread consumer([&queue, &failed, N] { uint32_t v = 0; for (uint32_t i = 0; i < N; ++i) { while (!queue.tryPop(v))