www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13650] New: std.algorithm.copy doesn't work with char/wchar


          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:
std.algorithm.copy(Range1, Range2)(Range1 source, Range2 target) if
(isInputRange!Range1 && isOutputRange!(Range2, ElementType!Range1))

Auto-decode strikes again!

Oct 24 2014