I am using boost::process::child to create a child process:
boost::process::child child("foo");
This works fine so far (on Linux + Windows).
Now i want to use a handler which is executed during the fork process:
boost::process::child child("foo", boost::process::extend::on_setup =
[](auto& exec) {
// ...
});
This also works fine - as long as a more or less up-to-date C++ compiler or
C++ standard.
Since g++-4.8.5 (which I have to use) does not support auto template
deduction for lambdas, i have to replace the lambda parameter type with a
concrete type.
boost::process::child child("foo", boost::process::extend::on_setup =
[](
participants (1)
-
Günter Berner