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: [patch] LWG 2408. SFINAE-friendly common_type/iterator_traits is missing in C++14


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


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