From 696b785c77352491ebe0e7c4a8dc348bbc9d5d53 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Wed, 11 Feb 2026 10:21:56 +0800 Subject: [PATCH] [bugfix] uses std::is_convertible --- include/boost/process/v2/popen.hpp | 2 +- include/boost/process/v2/posix/fork_and_forget_launcher.hpp | 4 ++-- include/boost/process/v2/posix/pdfork_launcher.hpp | 4 ++-- include/boost/process/v2/posix/pipe_fork_launcher.hpp | 4 ++-- include/boost/process/v2/process.hpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/boost/process/v2/popen.hpp b/include/boost/process/v2/popen.hpp index 21c248ab..a9c39c51 100644 --- a/include/boost/process/v2/popen.hpp +++ b/include/boost/process/v2/popen.hpp @@ -68,7 +68,7 @@ struct basic_popen : basic_process template explicit basic_popen(ExecutionContext & context, typename std::enable_if< - is_convertible::value, void *>::type = nullptr) : basic_process{context} { diff --git a/include/boost/process/v2/posix/fork_and_forget_launcher.hpp b/include/boost/process/v2/posix/fork_and_forget_launcher.hpp index ca32690c..e8020f4a 100644 --- a/include/boost/process/v2/posix/fork_and_forget_launcher.hpp +++ b/include/boost/process/v2/posix/fork_and_forget_launcher.hpp @@ -19,7 +19,7 @@ struct fork_and_forget_launcher : default_launcher template auto operator()(ExecutionContext & context, - const typename std::enable_if::value, filesystem::path >::type & executable, Args && args, @@ -38,7 +38,7 @@ struct fork_and_forget_launcher : default_launcher template auto operator()(ExecutionContext & context, error_code & ec, - const typename std::enable_if::value, filesystem::path >::type & executable, Args && args, diff --git a/include/boost/process/v2/posix/pdfork_launcher.hpp b/include/boost/process/v2/posix/pdfork_launcher.hpp index 3e11d33e..eac1d56e 100644 --- a/include/boost/process/v2/posix/pdfork_launcher.hpp +++ b/include/boost/process/v2/posix/pdfork_launcher.hpp @@ -24,7 +24,7 @@ struct pdfork_launcher : default_launcher template auto operator()(ExecutionContext & context, - const typename std::enable_if::value, filesystem::path >::type & executable, Args && args, @@ -43,7 +43,7 @@ struct pdfork_launcher : default_launcher template auto operator()(ExecutionContext & context, error_code & ec, - const typename std::enable_if::value, filesystem::path >::type & executable, Args && args, diff --git a/include/boost/process/v2/posix/pipe_fork_launcher.hpp b/include/boost/process/v2/posix/pipe_fork_launcher.hpp index 4d90a9c8..dc25cafc 100644 --- a/include/boost/process/v2/posix/pipe_fork_launcher.hpp +++ b/include/boost/process/v2/posix/pipe_fork_launcher.hpp @@ -22,7 +22,7 @@ struct pipe_fork_launcher : default_launcher template auto operator()(ExecutionContext & context, - const typename std::enable_if::value, filesystem::path >::type & executable, Args && args, @@ -41,7 +41,7 @@ struct pipe_fork_launcher : default_launcher template auto operator()(ExecutionContext & context, error_code & ec, - const typename std::enable_if::value, filesystem::path >::type & executable, Args && args, diff --git a/include/boost/process/v2/process.hpp b/include/boost/process/v2/process.hpp index 3ef167aa..789539e3 100644 --- a/include/boost/process/v2/process.hpp +++ b/include/boost/process/v2/process.hpp @@ -165,7 +165,7 @@ struct basic_process template explicit basic_process(ExecutionContext & context, typename std::enable_if< - is_convertible::value, void *>::type = nullptr) : process_handle_(context.get_executor()) {}