This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [patch] LWG 2408. SFINAE-friendly common_type/iterator_traits is missing in C++14


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 :)


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