"Gernot Frisch" <Me@Privacy.net> wrote...
Can I convert a std::string to a std::istream object?
No. But you can create an std::istringstream object with it:
std::string mystring("1 2 3");
std::istringstream is(mystring);
int one, two, three;
is >> one >> two >> three;
Of course, my effort is wasted if that's not what you wanted. Next
time please be more verbose trying to explain what you need instead
of asking about legality of a potential solution to your task.
V