From c44aa7836bd3bd7f5f3a05c05a85542017dd6da8 Mon Sep 17 00:00:00 2001 From: Santiago Date: Sun, 13 Aug 2023 12:54:03 +0200 Subject: [PATCH] Added 'call' overload --- subprocess.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprocess.hpp b/subprocess.hpp index aaed3c7..7242d0b 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -2050,6 +2050,12 @@ int call(const std::string& arg, Args&&... args) return (detail::call_impl(arg, std::forward(args)...)); } +template +int call(std::vector plist, Args &&... args) +{ + return (detail::call_impl(plist, std::forward(args)...)); +} + /*! * Run the command with arguments and wait for it to complete.