Mar 28, 2011 at 8:47am
Hello,
Use the str() member of streamstring to return a string calss, and then use string.empty()
Mar 28, 2011 at 10:40am
@kbw:
Ok, but I should compare with a 0 integer value the returned value of tellp() and this is the problem...
Mar 28, 2011 at 11:17am
If it's specifically a stringstream, I'd recomend going with aiby's suggestion above.