[v3 PATCH] Implement LWG 2758.
Jonathan Wakely
jwakely@redhat.com
Wed Aug 17 13:41:00 GMT 2016
On 16/08/16 16:15 +0300, Ville Voutilainen wrote:
>On 16 August 2016 at 15:58, Jonathan Wakely <jwakely@redhat.com> wrote:
>> This patch constrains the new overloads using:
>>
>> template<typename _Tp, typename _Res>
>> using _If_sv = enable_if_t<
>> __and_<is_convertible<const _Tp&, __sv_type>,
>> __not_<is_convertible<const _Tp&, const _CharT*>>>::value,
>> _Res>;
>>
>> so that anything convertible to const _CharT* goes to the same
>> overload as would have been chosen prior to C++17.
>>
>> I'm testing this now but won't commit it until it's clear this is a
>> sensible resolution for LWG 2758.
>
>
>It's crystal clear to me that it is, ship it.
Here's what I've committed, adding tests for the other functions too.
Tested ppx64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 20762 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160817/ad452260/attachment.bin>
More information about the Libstdc++
mailing list