Subject: Re: [boost] What else shall I do before reuse a stringstream fordate parsing?
From: Bo Persson (bop_at_[hidden])
Date: 2009-02-16 12:53:53
Bill David wrote:
> 2009/2/16 Dmitry Goncharov <dgoncharov_at_[hidden]>
>> You should invoke m_ss.seekg(ios_base::beg) before each parsing.
>> Also, be careful with to_tm(). It is buggy. See
> But after I do that, both invocations report "do not understand".
> And why clear can't rewind it?
The function clear doesn't "rewind" the stream, it just clears the
flags, like eof. The old stream content is still there.