Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Start with the declarations and implementation reached through boost/process.hpp, comparing basic_process construction with windows::default_launcher::operator(). Reproduce the two supplied MSVC examples and trace the launcher overloads; done means the launcher accepts std::initializer_liststd::string_view consistently with the basic_process constructor.

Written by the indexing model from the issue text.

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<string_view>, but the windows::default_launcher::operator() does not.
I would like this functionality to be implemented by the developers/community.

Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/process

All issues in boostorg/process

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.