libstdc++/4433: strstream::{tellp,seekp} fail.

bkoz@gcc.gnu.org bkoz@gcc.gnu.org
Tue Apr 9 12:54:00 GMT 2002


Synopsis: strstream::{tellp,seekp} fail.

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Tue Apr  9 12:54:39 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: bkoz
State-Changed-When: Tue Apr  9 12:54:39 2002
State-Changed-Why:
    The strstream interface is deprecated, and as Paolo notes below, and the libstdc++-v3 strstring interface does not conform to the standard-approved stringstream interface. (They are different classes.)
    
    Of interest is the use of stringstreams instead of strstreams in your sample code. If strstream->sstream, and std::strstream->std::stringstream substitutions are performed on your code, everything is ok and you'll get the results you expect.
    
    Thus, I conclude that this is not a bug.
    
    %a.out 
    ok=1
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4433



More information about the Gcc-prs mailing list