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]
Other format: [Raw text]

Re: basic_streambuf / locale::ctype problems


>       typedef typename traits_type::int_type            int_type;
> 
> Where is the problem?

The problem is that the io code assumes int_type is indeed an integer
type, and does explicit casting to things like streamsize. This is not
correct, as a quick perusal of char_traits indicates.

I think Jack Reeves is correct on this point, and have modified the
appropriate code in question as per his patch.

-benjamin


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