Cannot deduce function from argument type when single candidate

Adam D. Ruppe destructionator at gmail.com
Mon Mar 29 01:39:16 UTC 2021


On Monday, 29 March 2021 at 01:24:13 UTC, Preetpal wrote:
>     writeln(isRandomAccessRange(arr));

Template arguments are passed by !(), not just ().

I believe you must also pass `typeof(arr)` since 
isRandomAccessRange is only interested in types.



More information about the Digitalmars-d-learn mailing list