basic_streambuf / locale::ctype problems
Benjamin Kosnik
bkoz@redhat.com
Thu Jul 4 12:08:00 GMT 2002
> 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
More information about the Libstdc++
mailing list