[patch] LWG 2408. SFINAE-friendly common_type/iterator_traits is missing in C++14

Marc Glisse marc.glisse@inria.fr
Wed Nov 12 12:55:00 GMT 2014


On Wed, 12 Nov 2014, Jonathan Wakely wrote:

> On 12/11/14 07:13 +0100, Marc Glisse wrote:
>> On Tue, 11 Nov 2014, Jonathan Wakely wrote:
>> 
>>> +  template<typename _Iterator, typename = __void_t<>>
>> 
>> Is there a particular reason not to write "void" directly?
>
> I like this form as a hint that the specialization is expected to use
> void_t for that parameter ... but as the specializations tend to be
> only about 5 lines away the hint isn't really needed. I'll stop doing
> it if you prefer :)

No, documentation is as good a purpose as any, I was just curious.

-- 
Marc Glisse



More information about the Gcc-patches mailing list