Open user706 opened 4 weeks ago
this does not compile:
#include <boost/process.hpp>
#include <string>
std::string getStdOutFromCommand(const std::decay_t<decltype(boost::process::exe)> &exe, const std::decay_t<decltype(boost::process::args)> &args)
{
boost::process::ipstream pipe_stream;
boost::process::child c(exe, args, boost::process::std_out > pipe_stream);
// ...
}
Switch to boost.process v2 and use filesystem::path
& vector<string>
. Seriously, this trickery was a mistake.
How does one write a wrapper function taking
boost::process::exe
andboost::process::args
.is
boost::process::exe
even a type? seems not...What trickery is this? Thanks.