Classes and templates

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 31 12:43:57 PDT 2016


On Monday, 31 October 2016 at 19:24:46 UTC, Hefferman wrote:
> Whenever I try to compile this, it throws an error "class 
> sorting.BubbleSort(T) is used as a type". How do I get a 
> workaround?

Give a template type when crating it

new BubbleSort!(string)

for example


More information about the Digitalmars-d mailing list