This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: Question about std::basic_ostream and unsigned char in gcc 3.0


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 ?


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