boostorg / boostorg/process

[Windows][MSVC] Add support of std::initializer_list<string_view> for windows::default_launcher::operator()

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

Description

Got a problem at Boost version 1.88

This can be compiled
```
#define WIN32_LEAN_AND_MEAN
#include "boost/process.hpp"

int main()
{
boost::asio::io_context ctx;

auto process = boost::process::process(ctx, "C:\\Windows\\System32\\cmd.exe", {});

return 0;
}
```

And this can't
```
#define WIN32_LEAN_AND_MEAN
#include "boost/process.hpp"

int main()
{
boost::asio::io_context ctx;
boost::process::default_process_launcher launcher;

auto process = launcher(ctx, "C:\\Windows\\System32\\cmd.exe", {});

return 0;
}
```

Because the basic_process constructor supports std::initializer_list, but the windows::default_launcher::operator() does not.
I would like this functionality to be implemented by the developers/community.

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.