Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6635: Boost.Locale UTF encode function passes wrong type to output iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-29 14:44:27
#6635: Boost.Locale UTF encode function passes wrong type to output iterator
-------------------------------------+--------------------------------------
Reporter: jason.erb@⦠| Owner: artyom
Type: Bugs | Status: assigned
Milestone: Boost 1.50.0 | Component: locale
Version: Boost 1.49.0 | Severity: Cosmetic
Resolution: | Keywords: Boost.Locale encode UTF
-------------------------------------+--------------------------------------
Comment (by Jason Erb <jason.erb@â¦>):
Thanks for looking into this. Here is the specific message:
{{{error: implicit conversion loses integer precision: 'code_point' (aka
'unsigned int') to 'const char' [-Werror,-Wconversion]}}}
I have used various boost libraries for a long time with these warnings
enabled and this is the first library in which I have hit this problem.
In my view, the cast is entirely appropriate in this case: the user has
specified {{{CharType}}} as the code unit type, so the code units sent to
the output iterator should be of this type.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6635#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:09 UTC