From d016d629c9b40b91c21564bc6f4a5280915b15f5 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 1 Nov 2015 18:47:31 +0000 Subject: [PATCH] comment the capture behavior --- main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cc b/main.cc index e6fc0fd..3ab7739 100644 --- a/main.cc +++ b/main.cc @@ -418,6 +418,7 @@ int main(int argc, char **argv) { auto cnt = ((ObState &)cs).counters.back(); cnt->incr(); String ds = s; + /* in c++14 we can use generalized lambda captures to move the str */ tpool.push([cnt, ds]() { int ret = system(ds.data()); if (ret && !cnt->result)