Why is the string version of getline() a global function while the char* version is part of the istream objects? I don't understand the reasoning behind this separation. Why isn't the string version simply an overloaded version of istream::getlin e()?
This oddity has tripped me up several times, I tend to forget to use the global function and use the istream version.
This oddity has tripped me up several times, I tend to forget to use the global function and use the istream version.