How to call opCall as template?

Stanislav Blinov stanislav.blinov at gmail.com
Thu Jan 30 08:23:59 PST 2014


> void main() {
> 	F f;
> 	int i = f(3,4,5);
> 	float f_ = f!float(6, 7, 8);
> }
> ----
>
> Does not work, it fails with:
> Error: template instance f!float f is not a template 
> declaration, it is a variable

f.opCall!float(6, 7, 8);


More information about the Digitalmars-d-learn mailing list