Boost logo

Boost Users :

Subject: [Boost-users] Process extension compile issue.
From: dinesh kumar (dineshkumar02_at_[hidden])
Date: 2017-06-13 20:05:40

Hi Team,

Greetings for the day.

I am currently facing the problem with process extension as documented here
I am testing the boost 1.64 version macOS, and unable to use the below

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 ()>'

Would somebody guide me here, please?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at