cpp-subprocess icon indicating copy to clipboard operation
cpp-subprocess copied to clipboard

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

Open klosworks opened this issue 5 years ago • 0 comments

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.

klosworks avatar Jul 03 '19 09:07 klosworks