Fix char_traits<unsigned char> to what looks like correct behavior.
char_traits<unsigned char>::to_char_type(x) used to return 0 no matter what x was, and likewise to_int_type(x) used to return 0 no matter what. (0 is what you get when you default-construct an integral type, which is what the old code was doing.) This seemed like buggy behavior to me, so I've changed it.
Showing
Please
register
or
sign in
to comment