[PATCH] PR libstdc++/85951 for make_signed/make_unsigned for character types

Jonathan Wakely jwakely@redhat.com
Tue Jun 5 07:38:00 GMT 2018


On 31/05/18 13:17 +0100, Jonathan Wakely wrote:
>Because the wide character types are neither signed integer types nor
>unsigned integer types they need to be transformed to an integral type
>of the correct size and the lowest rank (which is not necessarily the
>underlying type). Reuse the helpers for enumeration types to select the
>correct integer.
>
>The refactoring of __make_unsigned_selector and __make_signed_selector
>slightly reduces the number of template instantiations and so reduces
>memory usage.

A follow-up patch to fix some comment typos, committed to trunk.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1294 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180605/bc0440e4/attachment.bin>


More information about the Gcc-patches mailing list