how to call class' template constructor
JR via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Oct 12 13:29:39 PDT 2014
On Sunday, 12 October 2014 at 19:46:41 UTC, ketmar via
Digitalmars-d-learn wrote:
> Hello.
>
> please, how to call template constructor of a class? it's
> completely
> escaped my mind. i.e. i have this class:
>
> class A {
> this(alias ent) (string name) {
> ...
> }
> }
>
> and i want to do:
>
> void foo () { ... }
> auto a = new A!foo("xFn");
Template the whole class? class A(alias ent)?
More information about the Digitalmars-d-learn
mailing list