This is the mail archive of the
mailing list for the libstdc++ project.
Re: [patch] LWG 2408. SFINAE-friendly common_type/iterator_traits is missing in C++14
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Nov 2014 13:44:00 +0100 (CET)
- Subject: Re: [patch] LWG 2408. SFINAE-friendly common_type/iterator_traits is missing in C++14
- Authentication-results: sourceware.org; auth=none
- References: <20141111235804 dot GP5191 at redhat dot com> <alpine dot DEB dot 2 dot 11 dot 1411120711160 dot 1574 at laptop-mg dot saclay dot inria dot fr> <20141112100312 dot GS5191 at redhat dot com>
- Reply-to: libstdc++ at gcc dot gnu dot org
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.