[Issue 5666] std.array.replace compile error (string and immutable string)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 4 07:16:08 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5666
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kennytm at gmail.com
OS/Version|Windows |All
--- Comment #6 from kennytm at gmail.com 2011-05-04 07:12:14 PDT ---
std.array.join doesn't work with array of const/immutable string either :\
------------------------
import std.array;
void main() {
const(char[])[] d;
join(d, ",");
}
------------------------
x.d(5): Error: template std.array.join(RoR,R) if (isInputRange!(RoR) &&
isInputRange!(ElementType!(RoR)) && isForwardRange!(R)) does not match any
function template declaration
x.d(5): Error: template std.array.join(RoR,R) if (isInputRange!(RoR) &&
isInputRange!(ElementType!(RoR)) && isForwardRange!(R)) cannot deduce template
function from argument types !()(const(char[])[],string)
------------------------
It works if 'd' is a 'const(char)[][]'.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list