Template Question

Steven Schveighoffer schveiguy at yahoo.com
Mon Nov 20 14:05:34 UTC 2017


On 11/19/17 2:41 PM, Adam D. Ruppe wrote:
> On Sunday, 19 November 2017 at 19:31:53 UTC, Jiyan wrote:
>> Text X;
> 
> You still need to instantiate it, even with default args.
> 
> Text!() X;
> 
> will work
> 

If that's the case, then he needs to use Text(T = char) (default type) 
vs. Text(T : char) (specialization)

-Steve


More information about the Digitalmars-d-learn mailing list