Template not seeming to instantiate a second time with default alias parameter
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 30 14:35:29 PDT 2016
On 08/30/2016 11:28 PM, wobbles wrote:
> I'll have to try find a workaround for now :/
This seems to work and isn't too ugly:
----
class Node(T, alias func) {/*...*/}
alias Node(T) = Node!(T, (T t) => t*t);
----
More information about the Digitalmars-d-learn
mailing list