boostorg / boostorg/process

Make launching a process without throwing an exception more obvious in Boost.Process V2

Open
#505 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Description

Boost.Process generally offers throwing and non-throwing overloads.

The constructor of `boost::process::v2::process` is missing an overload that takes an `error_code` instance. The following code does not compile:

```cpp
boost::system::error_code ec;
boost::process::v2::process process{ctx, ec, "/usr/bin/cp", {"source.txt", "target.txt"}};
```

Looks like these constructors are simply missing and could easily forward `ec` to `default_process_launcher`? v1 offered such constructor overloads.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.