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:
@@ -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}
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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()) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user