Classes and templates
Hefferman via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 31 13:06:22 PDT 2016
On Monday, 31 October 2016 at 19:43:57 UTC, Adam D. Ruppe wrote:
> On Monday, 31 October 2016 at 19:24:46 UTC, Hefferman wrote:
>
> Give a template type when crating it
>
> new BubbleSort!(string)
>
> for example
Is it possible to create this using "typeof"?
E. g. "BubbleSort b = new BubbleSort!(typeof(arr));"
Compilation fails with that line....
More information about the Digitalmars-d
mailing list