Templated functions: explicit and implicit instantiation at the same time?

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Nov 1 05:23:18 PDT 2007


"Don Clugston" <dac at nospam.com.au> wrote in message 
news:fgc15n$226b$1 at digitalmars.com...
> Do it in two levels.
>
> template func(R=int)
> {
>    R func(T)(T t) {...}
> }

First thing I tried.  This works for the explicit case, but you can't call 
it with IFTI, since func is no longer a function template.  I wish the 'is 
this a function template?' check were a little more lenient/intelligent in 
some cases. 




More information about the Digitalmars-d-learn mailing list