New paper: N3601, Implicit Template Parameters -- Mike Spertus

A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: N3601

Date: 2013-03-17

Implicit Template Parameters

by Mike Spertus

Excerpt:

The purpose of this example is to eliminate the need for the redundant template<typename T, T t> idiom. This idiom is widely used, with over 100k hits on Google.

Add a Comment

Comments are closed.

Comments (1)

0 0

kay said on Mar 19, 2013 01:54 PM:

If possible I would prefer multiple "template-parameter-lists" as in

template <class Ret, class Cls>
template <Ret Cls::*t>
struct mystruct;

I think the intention and syntax is much more clear than

template <using class Ret, using class Cls, Ret Cls::*t>
struct mystruct;