This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Question about std::basic_ostream and unsigned char in gcc 3.0
- To: STDC++ <libstdc++ at sources dot redhat dot com>
- Subject: Re: Question about std::basic_ostream and unsigned char in gcc 3.0
- From: Levente Farkas <lfarkas at mindmaker dot hu>
- Date: Sat, 24 Mar 2001 20:44:51 +0100
- Organization: Mindmaker Ltd.
- References: <Pine.SOL.3.91.1010323144621.29775B-100000@cse.cygnus.com>
- Reply-To: lfarkas at mindmaker dot hu
Benjamin Kosnik wrote:
> > I have isolated the problem to a section of code like:
> >
> > #include <iostream.h>
> >
> > void writeOstream(ostream& ostr){
> > unsigned char buf[20];
> > ostr.write(buf, 18);
> >
> > }
>
> yeah.
>
> char != unsigned char != signed char.
??? this means char is different from BOTH singend and unsigned char ???
ie. char != signed char ?
what is magled name of these 3 type ? 3 different name ???
> the standard streams use char. If you have to use unsigned char, you'll
> need to instantiate for that type. (I also suggest just using char)
where the standard said that char != unsigned char != signed char ?