What exactly are you trying to do? If all you want is to work over a string you already have, just use the str() method of the istringstream() method to set the stringbuf...
[edit] Oh, I get it. You refuse to accept the answer in your other thread so you started a new one.
Try again.