Question about std::basic_ostream and unsigned char in gcc 3.0
Levente Farkas
lfarkas@mindmaker.hu
Sat Mar 24 11:43:00 GMT 2001
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 ?
More information about the Libstdc++
mailing list