Skip to content

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

Description

@AlrondPrime

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions