How to create TypeTuple/ExpressionTuple from tuple/tuples

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Aug 7 14:31:03 PDT 2012


On 8/7/12, Philippe Sigaud <philippe.sigaud at gmail.com> wrote:
> You can also take the 'dual' of your solution and have a template that
> makes a function automatically expand tuples

But that doesn't work for variadic templates, which is the OP's case:

int foo(T...)(T t) { return 1; }
alias expander!foo efoo;  // error


More information about the Digitalmars-d-learn mailing list