diff --git a/subprocess.hpp b/subprocess.hpp index 8fbbaa3..aaed3c7 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -1288,6 +1288,9 @@ public: int send(const char* msg, size_t length) { return stream_.send(msg, length); } + int send(const std::string& msg) + { return send(msg.c_str(), msg.size()); } + int send(const std::vector& msg) { return stream_.send(msg); }