diff --git a/subprocess.hpp b/subprocess.hpp index c4bcbba..2b7d950 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -146,7 +146,7 @@ namespace util * to be split. Default constructed to ' '(space) and '\t'(tab) * [out] vector : Vector of strings split at deleimiter. */ - static std::vector + static inline std::vector split(const std::string& str, const std::string& delims=" \t") { std::vector res; @@ -932,7 +932,7 @@ private: class Popen { public: - friend class detail::ArgumentDeducer; + friend struct detail::ArgumentDeducer; friend class detail::Child; template @@ -1179,7 +1179,6 @@ void Popen::execute_process() throw (CalledProcessError, OSError) } else { - int sys_ret = -1; close (err_wr_pipe);// close child side of pipe, else get stuck in read below stream_.close_child_fds();