void test() {
cout << "On Setup" << endl;
}
int main() {
std::function<void(void)> on_st = test;
bp::child c2("ls", boost::process::extend::on_setup(on_st));
}
Error:
/usr/local/include/boost/process/detail/handler.hpp:33:9: No matching function for call to object of type 'std::__1::function<void ()>'