Boost logo

Boost :

Subject: Re: [boost] [C++0x] Emulate C++0x char16_t, char32_t, std::u16string, and std::u32string
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-07-21 07:27:24


> It is a bad approach, and will produce a lot of future workarounds. We
> can still remember wchar_t as a typedef for some compilers and a
> BOOST_NO_INTRINSIC_WCHAR_T macro for that defect.
>
> However some emulation for char16_t, char32_t types is required, but
> it must not be a typedef!

Then what's the alternative? IMO there just isn't one, given that char16_t
must be a literal type even on non-C++0x comilers.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk