digitalmars.D.bugs - [Issue 13650] New: std.algorithm.copy doesn't work with char/wchar
- via Digitalmars-d-bugs (28/28) Oct 24 2014 https://issues.dlang.org/show_bug.cgi?id=13650
https://issues.dlang.org/show_bug.cgi?id=13650 Issue ID: 13650 Summary: std.algorithm.copy doesn't work with char/wchar Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: thecybershadow gmail.com /////// 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! --
Oct 24 2014