How to force std::stringstream operator >> to read an entire string instead of stopping at the first whitespace?
I\'ve got a template class that stores a value read
There isn't a way with operator>> that I'm aware of excepted writing your own facet (operator>> stop at first character for which isspace(c, getloc()) is true). But there is a getline function in which has the behaviour you want.