← Back to index
|
Original Bugzilla link
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
https://github.com/D-Programming-Language/phobos/pull/2799
Comment #2
by github-bugzilla — 2015-07-10T19:33:02Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/1f0f8ef77267465b503bb7766c7939fd507623fe
Fix Issue 13650 - Rebased
https://github.com/D-Programming-Language/phobos/commit/5d17edc745e953988a574411a9f351bfb9d525d3
Merge pull request #2799 from Poita/Issue13650 Fix Issue 13650 - Cannot copy (w)char[] into (w)char[]
Comment #3
by github-bugzilla — 2015-10-04T18:19:47Z
Commits pushed to stable at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/1f0f8ef77267465b503bb7766c7939fd507623fe
Fix Issue 13650 - Rebased
https://github.com/D-Programming-Language/phobos/commit/5d17edc745e953988a574411a9f351bfb9d525d3
Merge pull request #2799 from Poita/Issue13650