digitalmars.D.bugs - [Issue 19835] New: std.algorithm.mutation.copy static array source
- d-bugmail puremagic.com (30/30) Apr 27 2019 https://issues.dlang.org/show_bug.cgi?id=19835
https://issues.dlang.org/show_bug.cgi?id=19835 Issue ID: 19835 Summary: std.algorithm.mutation.copy static array source argument broken Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: feklushkin.denis gmail.com import std.algorithm.mutation; void main() { ubyte[2] a = [ 1, 5 ]; ubyte[] buf; buf.length = 40; auto rem = a.copy(buf); // worked on 2.085.1, broken in 2.086 } Error message: onlineapp.d(10): Error: template std.algorithm.mutation.copy cannot deduce function from argument types !()(ubyte[2], ubyte[]), candidates are: /dlang/dmd-beta/linux/bin64/../../src/phobos/std/algorithm/mutation.d(368): std.algorithm.mutation.copy(SourceRange, TargetRange)(SourceRange source, TargetRange target) if (isInputRange!SourceRange && isOutputRange!(TargetRange, ElementType!SourceRange)) --
Apr 27 2019