← Back to index
|
Original Bugzilla link
Bug 8468 – std.array.join of a const array of strings too
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-07-29T19:36:00Z
Last change time
2013-05-21T17:03:09Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-07-29T19:36:48Z
import std.array: join; void main() { string[] data1 = ["abc", "def"]; string result1 = join(data1); // OK const string[] data2 = ["abc", "def"]; string result2 = join(data2); // Error } DMD 2.060beta gives: temp.d(6): Error: template std.array.join does not match any function template declaration ...\dmd2\src\phobos\std\array.d(1273): Error: template std.array.join cannot deduce template function from argument types !()(const(immutable(char)[][]))
Comment #1
by bearophile_hugs — 2013-05-21T17:03:09Z
*** This issue has been marked as a duplicate of issue 7690 ***