comment the capture behavior

master
Daniel Kolesa 2015-11-01 18:47:31 +00:00
parent e32a5a86ff
commit d016d629c9
1 changed files with 1 additions and 0 deletions

View File

@ -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)