[Issue 14817] [REG-master] copy("foo", "bar") std.algorithm/std.file conflict

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Sep 18 06:22:06 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14817

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/1e7246b20128efc94dd7525bdbb58e8ee171ca5e
Fix Issue 14817 - std.algorithm.copy/std.file.copy conflict

https://github.com/D-Programming-Language/phobos/pull/2799 introduced a
regression, which prevented module that imported both std.algorithm and
std.file to use unqualified calls to copy(string, string). The regression was
caused by the removal of template constraints, which were preventing the
std.algorithm copy from being considered for overload resolution.

std.algorithm.copy has two paths: an path for array copies, and a path for all
other copies. Previously they were forked using static if inside function. Now
the decision is made using template constraints.

https://github.com/D-Programming-Language/phobos/commit/f9a6e0b0dd249b8c36820920ae848a3966699352
Add test for issue 14817

https://github.com/D-Programming-Language/phobos/commit/edc405cacd1a60c3e09236bc8b2cca39b271e6b3
Merge pull request #3649 from DmitryOlshansky/poita--issue14817

[REG master] Issue14817 std.algorithm.copy/std.file.copy conflict

--


More information about the Digitalmars-d-bugs mailing list