template ref parameter

Jack Applegame japplegame at gmail.com
Wed Nov 21 04:38:12 PST 2012


> storage classes on function parameters affect the type of the 
> function, but
> they do not affect the type of the parameter. If a function has 
> a parameter
> named foo, then typeof(foo) is going to be the same whether ref 
> is on it or
> not.
>
> - Jonathan M Davis

Ok. But how to pass storage class to template?


More information about the Digitalmars-d-learn mailing list