[Issue 13650] New: std.algorithm.copy doesn't work with char/wchar
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Oct 24 18:40:44 PDT 2014
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 at puremagic.com
Reporter: thecybershadow at 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!
--
More information about the Digitalmars-d-bugs
mailing list