Possible bug

bearophile bearophileHUGS at lycos.com
Mon Mar 25 07:12:16 PDT 2013


Sergei Nosov:

> Everything's fine if I specify parameters explicitly:
> <pre>
> test!int hello = test!int(cptr);
> </pre>

Some persons have proposed alternative designs, but D is working 
as currently designed here... Unlike template functions, 
templated structs don't infer the type.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list