mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 04:46:21 -04:00
Create Popen::send overload for std::string
This commit is contained in:
parent
3ddc0fcd9a
commit
af1f3d8fb4
@ -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<char>& msg)
|
||||
{ return stream_.send(msg); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user