-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
In the following code the first process constructor succeeds, the second fails:
#include <boost/asio/awaitable.hpp>
#include <boost/process/v2.hpp>
void ok()
{
auto ctx = boost::asio::io_context{};
boost::process::v2::process(ctx, "", {});
}
auto fail() -> boost::asio::awaitable<void>
{
auto ex = co_await boost::asio::this_coro::executor;
boost::process::v2::process(ex, "", {});
}With the error:
call of overloaded 'basic_process(boost::asio::any_io_executor&, const char [1], <brace-enclosed initializer list>)' is ambiguous
note: candidate: 'boost::process::v2::basic_process<Executor>::basic_process(executor_type, const boost::filesystem::path&, std::initializer_list<boost::basic_string_view<wchar_t, std::char_traits<wchar_t> > >, Inits&& ...) [with Inits = {}; Executor = boost::asio::any_io_executor; executor_type = boost::asio::any_io_executor]'
note: candidate: 'boost::process::v2::basic_process<Executor>::basic_process(executor_type, const boost::filesystem::path&, std::initializer_list<boost::basic_string_view<char, std::char_traits<char> > >, Inits&& ...) [with Inits = {}; Executor = boost::asio::any_io_executor; executor_type = boost::asio::any_io_executor]'
Compiler explorer: https://gcc.godbolt.org/z/sddfdo64s
Metadata
Metadata
Assignees
Labels
No labels