hmm... that should imply that the stringstream is in a failed state, which is strange.
Type: Posts; User: laserlight
hmm... that should imply that the stringstream is in a failed state, which is strange.
Okay, so given this program:
#include <string>
#include <sstream>
#include <iostream>
int main()
{
using namespace std;
int i = 5678;
Try printing s instead of out and you will probably find that out.str() did not return an empty string.