Is there a conversion for the above?
+2
A:
Convert a std::string to an output stream? Usually it's: convert a string to an input stream that reads characters from the given string:
std::string myString = //...
std::istringstream iss(myString);
See also: http://www.cplusplus.com/reference/iostream/istringstream/
Daniel Trebbien
2010-06-24 14:09:19