Create Popen::send overload for std::string

This commit is contained in:
Mikhail Sokolovskiy 2022-06-22 12:51:58 +03:00
parent 3ddc0fcd9a
commit af1f3d8fb4

View File

@ -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); }