This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3 PATCH] Implement LWG 2758.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]