libstdc++/3740: typo in ostringstream constructor
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
>Release:        20010716 snapshot
source code
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,
observe line 280 in bits/std_sstream.h
Add '&' to ostringstream constructor's parameter.

More information about the Gcc-bugs mailing list