forked from OctaForge/OctaBuild
comment the capture behavior
parent
e32a5a86ff
commit
d016d629c9
1
main.cc
1
main.cc
|
@ -418,6 +418,7 @@ int main(int argc, char **argv) {
|
||||||
auto cnt = ((ObState &)cs).counters.back();
|
auto cnt = ((ObState &)cs).counters.back();
|
||||||
cnt->incr();
|
cnt->incr();
|
||||||
String ds = s;
|
String ds = s;
|
||||||
|
/* in c++14 we can use generalized lambda captures to move the str */
|
||||||
tpool.push([cnt, ds]() {
|
tpool.push([cnt, ds]() {
|
||||||
int ret = system(ds.data());
|
int ret = system(ds.data());
|
||||||
if (ret && !cnt->result)
|
if (ret && !cnt->result)
|
||||||
|
|
Loading…
Reference in New Issue