UTF-16 streams

Jonathan Wakely jwakely.gcc@gmail.com
Thu Feb 5 04:45:00 GMT 2015

On 4 February 2015 at 23:38, Tom Cook wrote:
> A more specific question: is providing a specialisation of std::ctype
> (ie std::ctype<char16_t>) the right way to fix this?

I've just used an online compiler that provides GCC trunk and still
get a bad_cast exception. It doesn't compile using Clang and libc++,
so it might be that your program is not required to work and you do
need to provide some user-defined specializations.

I won't be able to check the standard or debug it until next week.

More information about the Libstdc++ mailing list