From 535d4555e5196ba86c4ee2175af0988637ebfadf Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 24 Mar 2021 10:04:38 +0100 Subject: [PATCH] bricks: fix the test-suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #446 using a fix from Étienne Renault. * tests/core/bricks.cc: Pass the hash table by reference while instantiating the threads. --- tests/core/bricks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/bricks.cc b/tests/core/bricks.cc index ec386be4b..615bd0acc 100644 --- a/tests/core/bricks.cc +++ b/tests/core/bricks.cc @@ -209,7 +209,7 @@ int main() std::vector workers; for (int i = 0; i < 6; i++) workers. - push_back(std::thread([&ht2](int tid) + push_back(std::thread([ht2](int tid) mutable { for (int i = 0; i< 2000; ++i) ht2.insert({i, tid});