You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The process class is not default constructible as expected from documentation #562
Based on the current documentation and code comments (boost process v1.90) I was expecting the boost::process::v2::process class (aka basic_process) to be default contructible:
/** An empty process is similar to a default constructed thread. It holds an emptyhandle and is a place holder for a process that is to be launched later. */basic_process() = default;
<source>:4:33: error: call to implicitly-deleted default constructor of 'boost::process::v2::process' (aka 'basic_process<>')
4 | boost::process::v2::process p;
| ^
/app/boost/include/boost/process/v2/process.hpp:69:3: note: explicitly defaulted function was implicitly deleted here
69 | basic_process() = default;
| ^
/app/boost/include/boost/process/v2/process.hpp:340:34: note: default constructor of 'basic_process<>' is implicitly deleted because field 'process_handle_' has no default constructor
340 | basic_process_handle<Executor> process_handle_;
| ^
1 error generated.
Compiler returned: 1
Is the process class supposed to be default-constructible or not? If not the default constructor should probably be = delete instead of defaulted and the comment removed.
Activity
klemens-morgenstern commentedon Jul 21, 2026
It's not, that's a documentation mistake.
Make basic_process default constructor =delete'd