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);
}


Reply via email to