const ref void[] – float[] not implicitly convertable to void[]
David
d at dav1d.de
Mon Jul 23 14:50:56 PDT 2012
> Of course that doesn't work. ref must refer to an lvalue, so it can't convert
> anything. The type must match exactly save for constness. So float[] can't be
> passed to a function taking ref void[]. Either you need to convert to assign
> the float[] to a void[] variable first, or you need the function to take ref
> float[].
>
> - Jonathan M Davis
>
Thanks! I guess then I'll stick with the template :)
More information about the Digitalmars-d-learn
mailing list