boost::process::v2::error::exit_code_category — An error category that can be used to interpret exit codes of subprocesses.
// In header: <boost/process/v2/error.hpp> static exit_code_category;
Currently not used by boost.process, but it might be in the future.
void run_my_process(filesystem::path pt, error_code & ec) { process proc(pt, {}); proc.wait(); ec.assign(proc.native_exit_code(), error::get_exit_code_category()); }