diff --git a/subprocess.hpp b/subprocess.hpp index 8ebac01..8fbbaa3 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -1298,6 +1298,11 @@ public: return res; } + std::pair communicate(const std::string& msg) + { + return communicate(msg.c_str(), msg.size()); + } + std::pair communicate(const std::vector& msg) { auto res = stream_.communicate(msg);