aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);