aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker/worker.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-06 17:12:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-06 17:12:56 +0300
commit903a688860a24b3167a02465c5552ec8bf17be38 (patch)
tree7ed9ccd1eef1b868d3cf454a229ced67d4087591 /bbot/worker/worker.cxx
parentdd591dae0f04035f4c4697cdd0d2c58461cddf06 (diff)
Make worker be compilable with VC
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r--bbot/worker/worker.cxx4
1 files 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);