Bug 7690 – std.string.join of const string array too

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-03-11T14:10:00Z
Last change time
2014-02-15T17:31:43Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-03-11T14:10:01Z
Is this a regression? import std.string: join; void main() { const foos = ["foo", "bar"]; string s = join(foos); } DMD 2.059head gives: test.d(4): Error: template std.array.join(RoR,R) if (isInputRange!(RoR) && isInputRange!(ElementType!(RoR)) && isForwardRange!(R) && is(Unqual!(ElementType!(ElementType!(RoR))) == Unqual!(ElementType!(R)))) does not match any function template declaration test.d(4): Error: template std.array.join(RoR,R) if (isInputRange!(RoR) && isInputRange!(ElementType!(RoR)) && isForwardRange!(R) && is(Unqual!(ElementType!(ElementType!(RoR))) == Unqual!(ElementType!(R)))) cannot deduce template function from argument types !()(const(immutable(char)[][]))
Comment #1 by bearophile_hugs — 2013-05-21T17:03:09Z
*** Issue 8468 has been marked as a duplicate of this issue. ***
Comment #2 by bearophile_hugs — 2013-05-21T17:03:38Z
*** Issue 7776 has been marked as a duplicate of this issue. ***
Comment #3 by bearophile_hugs — 2013-09-21T05:27:00Z
*** Issue 9207 has been marked as a duplicate of this issue. ***
Comment #4 by bearophile_hugs — 2014-02-15T17:31:43Z