libstdc++/3740: typo in ostringstream constructor

kenny.simpson@gs.com kenny.simpson@gs.com
Thu Jul 19 12:16:00 GMT 2001


>Number:         3740
>Category:       libstdc++
>Synopsis:       typo in ostringstream constructor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 19 12:16:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     kenny.simpson@gs.com
>Release:        20010716 snapshot
>Organization:
>Environment:
source code
>Description:
in line 280 of bits/std_sstream.h I see:
   basic_ostringstream(const __string_type __str,
                                         ^^^

but for istringstream and stringstream I see:
   basic_stringstream(const __string_type& __str,
   basic_istringstream(const __string_type& __str,
>How-To-Repeat:
observe line 280 in bits/std_sstream.h
>Fix:
Add '&' to ostringstream constructor's parameter.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list