This is the mail archive of the gcc-bugs@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]

Re: libstdc++/3740: typo in ostringstream constructor


> 
> Synopsis: typo in ostringstream constructor
> 
> Responsible-Changed-From-To: unassigned->bkoz
> Responsible-Changed-By: bkoz
> Responsible-Changed-When: Fri Aug 24 11:31:27 2001
> Responsible-Changed-Why:
>     Responsible.
> State-Changed-From-To: open->feedback
> State-Changed-By: bkoz
> State-Changed-When: Fri Aug 24 11:31:27 2001
> State-Changed-Why:
>     thanks!
>     
>     Fixed in mainline with:
>     
>     2001-08-24  Kenny Simpson  <kenny.simpson@gs.com>
>     
>     	libstdc++/3740
>     	* include/bits/std_sstream.h (basic_ostringstream): Fix ctor.
>     
>     Index: include/bits/std_sstream.h
>     ===================================================================
>     RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/std_sstream.h,v
>     retrieving revision 1.8
>     diff -c -p -r1.8 std_sstream.h
>     *** std_sstream.h	2001/07/13 20:50:02	1.8
>     --- std_sstream.h	2001/08/24 18:28:45
>     *************** namespace std
>     *** 277,283 ****
>             { this->init(&_M_stringbuf); }
>       
>             explicit 
>     !       basic_ostringstream(const __string_type __str,
>       			  ios_base::openmode __mode = ios_base::out)
>             : __ostream_type(NULL), _M_stringbuf(__str, __mode | ios_base::out)
>             { this->init(&_M_stringbuf); }
>     --- 277,283 ----
>             { this->init(&_M_stringbuf); }
>       
>             explicit 
>     !       basic_ostringstream(const __string_type __str&,

Excuse me for being dense, but surely this should be "const __string_type& str"
and not "const __string_type str&" ???

Regards,

/Mike

>       			  ios_base::openmode __mode = ios_base::out)
>             : __ostream_type(NULL), _M_stringbuf(__str, __mode | ios_base::out)
>             { this->init(&_M_stringbuf); }
>     
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3740&database=gcc
> 


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