Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5087: test_utf8_codecvt.cpp.patch fixing comparison with wrong type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-23 05:04:21
#5087: test_utf8_codecvt.cpp.patch fixing comparison with wrong type
--------------------------------+-------------------------------------------
Reporter: hstong@⦠| Owner: ramey
Type: Patches | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------
Comment (by hstong@â¦):
The type of `WEOF` according to C99 is `wint_t`.
`wint_t` is the `int_type` for `char_traits<wchar_t>` as specified by
C++03.
As such, it is the return type for `basic_istream<wchar_t>::get()`.
As per C99, `wint_t` is required to be able to hold an additional value
(`WEOF`) aside from the ones that `wchar_t` are required to. It follows
that `WEOF` may not be representable in a `wchar_t`.
A draft copy of C1x is available here:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1494.pdf
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5087#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC