This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/3740: typo in ostringstream constructor



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]