Bug 13650 – std.algorithm.copy doesn't work with char/wchar

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-25T01:40:00Z
Last change time
2015-10-04T18:19:47Z
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-10-25T01:40:44Z
/////// test.d ////// import std.algorithm; void main() { char[100] a, b; copy(a[], b[]); } ///////////////////// test.d(6,6): Error: template std.algorithm.copy cannot deduce function from argument types !()(char[], char[]), candidates are: C:\Soft\dmd2d\windows\bin\..\..\src\phobos\std\algorithm.d(8609,8): std.algorithm.copy(Range1, Range2)(Range1 source, Range2 target) if (isInputRange!Range1 && isOutputRange!(Range2, ElementType!Range1)) Auto-decode strikes again!
Comment #1 by peter.alexander.au — 2014-12-14T20:57:22Z
Comment #2 by github-bugzilla — 2015-07-10T19:33:02Z
Comment #3 by github-bugzilla — 2015-10-04T18:19:47Z