mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 12:56:23 -04:00
Create Popen::communicate overload for std::string
This commit is contained in:
parent
cbc9e82158
commit
3ddc0fcd9a
@ -1298,6 +1298,11 @@ public:
|
||||
return res;
|
||||
}
|
||||
|
||||
std::pair<OutBuffer, ErrBuffer> communicate(const std::string& msg)
|
||||
{
|
||||
return communicate(msg.c_str(), msg.size());
|
||||
}
|
||||
|
||||
std::pair<OutBuffer, ErrBuffer> communicate(const std::vector<char>& msg)
|
||||
{
|
||||
auto res = stream_.communicate(msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user