From 785ff230a8583e5100ada8c79a00833925227fb2 Mon Sep 17 00:00:00 2001 From: bibermann Date: Wed, 10 Jul 2019 13:43:15 +0200 Subject: [PATCH] Allow usage in multiple object files (#39) --- subprocess.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subprocess.hpp b/subprocess.hpp index 112038a..d5d491a 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -146,12 +146,13 @@ public: namespace util { - template bool is_ready(std::shared_future const &f) + template + inline bool is_ready(std::shared_future const &f) { return f.wait_for(std::chrono::seconds(0)) == std::future_status::ready; } - void quote_argument(const std::wstring &argument, std::wstring &command_line, + inline void quote_argument(const std::wstring &argument, std::wstring &command_line, bool force) { //