This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: UTF-16 streams
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Tom Cook <tom dot k dot cook at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 5 Feb 2015 04:45:39 +0000
- Subject: Re: UTF-16 streams
- Authentication-results: sourceware.org; auth=none
- References: <CAFSh4UxRKt1=gVs7mui0nynTdGWv6rRJmEAtymAdAttmSr0gRA at mail dot gmail dot com> <CAFSh4UyXt6wkBFTc93GAuMjd_zOsdzkJOp24yy6onFY82Kn2QA at mail dot gmail dot com>
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.