Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Global exit_code_category

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 const error_category & 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()); }