2
0
mirror of https://github.com/boostorg/process.git synced 2026-02-22 03:32:19 +00:00

[bugfix] uses std::is_convertible

This commit is contained in:
Klemens Morgenstern
2026-02-11 10:21:56 +08:00
parent 631f4c84b5
commit 696b785c77
5 changed files with 8 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ struct basic_popen : basic_process<Executor>
template <typename ExecutionContext>
explicit basic_popen(ExecutionContext & context,
typename std::enable_if<
is_convertible<ExecutionContext&,
std::is_convertible<ExecutionContext&,
net::execution_context&>::value, void *>::type = nullptr)
: basic_process<Executor>{context}
{

View File

@@ -19,7 +19,7 @@ struct fork_and_forget_launcher : default_launcher
template<typename ExecutionContext, typename Args, typename ... Inits>
auto operator()(ExecutionContext & context,
const typename std::enable_if<is_convertible<
const typename std::enable_if<std::is_convertible<
ExecutionContext&, net::execution_context&>::value,
filesystem::path >::type & executable,
Args && args,
@@ -38,7 +38,7 @@ struct fork_and_forget_launcher : default_launcher
template<typename ExecutionContext, typename Args, typename ... Inits>
auto operator()(ExecutionContext & context,
error_code & ec,
const typename std::enable_if<is_convertible<
const typename std::enable_if<std::is_convertible<
ExecutionContext&, net::execution_context&>::value,
filesystem::path >::type & executable,
Args && args,

View File

@@ -24,7 +24,7 @@ struct pdfork_launcher : default_launcher
template<typename ExecutionContext, typename Args, typename ... Inits>
auto operator()(ExecutionContext & context,
const typename std::enable_if<is_convertible<
const typename std::enable_if<std::is_convertible<
ExecutionContext&, net::execution_context&>::value,
filesystem::path >::type & executable,
Args && args,
@@ -43,7 +43,7 @@ struct pdfork_launcher : default_launcher
template<typename ExecutionContext, typename Args, typename ... Inits>
auto operator()(ExecutionContext & context,
error_code & ec,
const typename std::enable_if<is_convertible<
const typename std::enable_if<std::is_convertible<
ExecutionContext&, net::execution_context&>::value,
filesystem::path >::type & executable,
Args && args,

View File

@@ -22,7 +22,7 @@ struct pipe_fork_launcher : default_launcher
template<typename ExecutionContext, typename Args, typename ... Inits>
auto operator()(ExecutionContext & context,
const typename std::enable_if<is_convertible<
const typename std::enable_if<std::is_convertible<
ExecutionContext&, net::execution_context&>::value,
filesystem::path >::type & executable,
Args && args,
@@ -41,7 +41,7 @@ struct pipe_fork_launcher : default_launcher
template<typename ExecutionContext, typename Args, typename ... Inits>
auto operator()(ExecutionContext & context,
error_code & ec,
const typename std::enable_if<is_convertible<
const typename std::enable_if<std::is_convertible<
ExecutionContext&, net::execution_context&>::value,
filesystem::path >::type & executable,
Args && args,

View File

@@ -165,7 +165,7 @@ struct basic_process
template <typename ExecutionContext>
explicit basic_process(ExecutionContext & context,
typename std::enable_if<
is_convertible<ExecutionContext&,
std::is_convertible<ExecutionContext&,
net::execution_context&>::value, void *>::type = nullptr)
: process_handle_(context.get_executor()) {}