Skip to content

Commit 696b785

Browse files
[bugfix] uses std::is_convertible
1 parent 631f4c8 commit 696b785

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

include/boost/process/v2/popen.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct basic_popen : basic_process<Executor>
6868
template <typename ExecutionContext>
6969
explicit basic_popen(ExecutionContext & context,
7070
typename std::enable_if<
71-
is_convertible<ExecutionContext&,
71+
std::is_convertible<ExecutionContext&,
7272
net::execution_context&>::value, void *>::type = nullptr)
7373
: basic_process<Executor>{context}
7474
{

include/boost/process/v2/posix/fork_and_forget_launcher.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct fork_and_forget_launcher : default_launcher
1919

2020
template<typename ExecutionContext, typename Args, typename ... Inits>
2121
auto operator()(ExecutionContext & context,
22-
const typename std::enable_if<is_convertible<
22+
const typename std::enable_if<std::is_convertible<
2323
ExecutionContext&, net::execution_context&>::value,
2424
filesystem::path >::type & executable,
2525
Args && args,
@@ -38,7 +38,7 @@ struct fork_and_forget_launcher : default_launcher
3838
template<typename ExecutionContext, typename Args, typename ... Inits>
3939
auto operator()(ExecutionContext & context,
4040
error_code & ec,
41-
const typename std::enable_if<is_convertible<
41+
const typename std::enable_if<std::is_convertible<
4242
ExecutionContext&, net::execution_context&>::value,
4343
filesystem::path >::type & executable,
4444
Args && args,

include/boost/process/v2/posix/pdfork_launcher.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct pdfork_launcher : default_launcher
2424

2525
template<typename ExecutionContext, typename Args, typename ... Inits>
2626
auto operator()(ExecutionContext & context,
27-
const typename std::enable_if<is_convertible<
27+
const typename std::enable_if<std::is_convertible<
2828
ExecutionContext&, net::execution_context&>::value,
2929
filesystem::path >::type & executable,
3030
Args && args,
@@ -43,7 +43,7 @@ struct pdfork_launcher : default_launcher
4343
template<typename ExecutionContext, typename Args, typename ... Inits>
4444
auto operator()(ExecutionContext & context,
4545
error_code & ec,
46-
const typename std::enable_if<is_convertible<
46+
const typename std::enable_if<std::is_convertible<
4747
ExecutionContext&, net::execution_context&>::value,
4848
filesystem::path >::type & executable,
4949
Args && args,

include/boost/process/v2/posix/pipe_fork_launcher.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct pipe_fork_launcher : default_launcher
2222

2323
template<typename ExecutionContext, typename Args, typename ... Inits>
2424
auto operator()(ExecutionContext & context,
25-
const typename std::enable_if<is_convertible<
25+
const typename std::enable_if<std::is_convertible<
2626
ExecutionContext&, net::execution_context&>::value,
2727
filesystem::path >::type & executable,
2828
Args && args,
@@ -41,7 +41,7 @@ struct pipe_fork_launcher : default_launcher
4141
template<typename ExecutionContext, typename Args, typename ... Inits>
4242
auto operator()(ExecutionContext & context,
4343
error_code & ec,
44-
const typename std::enable_if<is_convertible<
44+
const typename std::enable_if<std::is_convertible<
4545
ExecutionContext&, net::execution_context&>::value,
4646
filesystem::path >::type & executable,
4747
Args && args,

include/boost/process/v2/process.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ struct basic_process
165165
template <typename ExecutionContext>
166166
explicit basic_process(ExecutionContext & context,
167167
typename std::enable_if<
168-
is_convertible<ExecutionContext&,
168+
std::is_convertible<ExecutionContext&,
169169
net::execution_context&>::value, void *>::type = nullptr)
170170
: process_handle_(context.get_executor()) {}
171171

0 commit comments

Comments
 (0)