Ignore standard error output from solvers

This commit is contained in:
Martin Blicha 2023-08-17 12:54:44 +02:00
parent a4b4e70b67
commit 475cfe2532

View File

@ -57,7 +57,8 @@ ReadCallback::Result solveWithTemporaryFile(
boost::process::child solver(
_pathToBinary,
boost::process::args(_commandArgs),
boost::process::std_out > out
boost::process::std_out > out,
boost::process::std_err > boost::process::null
);
std::vector<std::string> data;
@ -83,7 +84,8 @@ ReadCallback::Result solveWithPipe(
_pathToBinary,
boost::process::args(_commandArgs),
boost::process::std_out > out,
boost::process::std_in < in
boost::process::std_in < in,
boost::process::std_err > boost::process::null
);
in << _query << std::flush;