#dbugfix Issue 16486 200$

jmh530 john.michael.hall at gmail.com
Fri Mar 30 15:49:30 UTC 2018


On Friday, 30 March 2018 at 15:21:26 UTC, jmh530 wrote:
> [snip]
>

Doesn't extend to multiple template parameters that well...

import std.traits : TemplateOf;

struct TestType(T, U) {}
alias TestAlias(T) = TestType!(T, int);

template testFunction(T, alias U = TemplateOf!(TestAlias!T))
{
     void testFunction(U!(T, int) arg) {} //don't want to have to 
put the int here
}

void main()
{
     TestAlias!int testObj;
     testFunction(testObj);
}




More information about the Digitalmars-d mailing list