arun11299 / cpp-subprocess

Subprocessing with modern C++
Other
456 stars 90 forks source link

Calling Popen with a result of util::split doesn't compile #36

Open klosworks opened 5 years ago

klosworks commented 5 years ago

It would not be a stretch to expect this:

    auto proc = Popen(subprocess::util::split(command), error{PIPE}, cwd{where});

to compile. Unfortunately it gives the following error:

/home/pklos/projects/(...).cpp:70:80: error: no matching function for call to ‘subprocess::Popen::Popen(std::vector<std::__cxx11::basic_string<char> >, subprocess::error, subprocess::cwd)’
     auto proc = Popen(subprocess::util::split(command), error{PIPE}, cwd{where});

I don't see another equivalent of python shlex.split in your library.