I have a previously declared char c[64];
and I'm trying to look at the first word of the output of a pipe:
read(pipe_replacement_to_main[READ_END], c, BUF_SIZE);
istringstream response_stream(string(c));
string response_string;
getline(response_stream, response_string, ' ');
And gcc gives me the following at that fourth line:
error: no matching function for call to ‘getline(std::istringstream (&)(std::string), std::string&, char)’
I can't even figure out how it's trying to call the function. Did I declare the istringstream wrong?