From 903a688860a24b3167a02465c5552ec8bf17be38 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 6 Nov 2019 17:12:56 +0300 Subject: Make worker be compilable with VC --- bbot/worker/worker.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 6872234..f1686f2 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -328,10 +328,10 @@ build (size_t argc, const char* argv[]) // required to make sure that element references are not invalidated when // new results are added. // - const size_t max_results (6); + size_t max_results (6); rm.results.reserve (max_results); - auto add_result = [&rm] (string o) -> operation_result& + auto add_result = [&rm, max_results] (string o) -> operation_result& { assert (rm.results.size () < max_results); -- cgit v1.1