tags:

views:

58

answers:

2

Is there a conversion for the above?

+4  A: 

std::ostringstream from <sstream>:

http://www.cplusplus.com/reference/iostream/ostringstream/

Cogwheel - Matthew Orlando
+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