Re: Error: cannot deduce function from argument types

2018-05-05 Thread Sisor via Digitalmars-d-learn
On Saturday, 5 May 2018 at 17:06:13 UTC, Neia Neutuladh wrote: On Saturday, 5 May 2018 at 16:42:12 UTC, Sisor wrote: Error: template std.string.stripRight cannot deduce function from argument types You used http://dpldocs.info/experimental-docs/std.string.stripRight.html This function only

Error: cannot deduce function from argument types

2018-05-05 Thread Sisor via Digitalmars-d-learn
Hi, I have a function: string strippedString(ubyte[] block) { return (cast(string)block).stripRight("\0"); } With dmd it compiles, with ldc it produces the following error message: Error: template std.string.stripRight cannot deduce function from argument types !()(string, string),