[phobos] [D-Programming-Language/phobos] 1e7246: Fix Issue 14817 - std.algorithm.copy/std.file.copy...

GitHub via phobos phobos at puremagic.com
Fri Sep 18 06:22:03 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 1e7246b20128efc94dd7525bdbb58e8ee171ca5e
      https://github.com/D-Programming-Language/phobos/commit/1e7246b20128efc94dd7525bdbb58e8ee171ca5e
  Author: Peter Alexander <peter.alexander.au at gmail.com>
  Date:   2015-09-12 (Sat, 12 Sep 2015)

  Changed paths:
    M std/algorithm/mutation.d

  Log Message:
  -----------
  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.


  Commit: f9a6e0b0dd249b8c36820920ae848a3966699352
      https://github.com/D-Programming-Language/phobos/commit/f9a6e0b0dd249b8c36820920ae848a3966699352
  Author: Dmitry Olshansky <olshansky at knackit.com>
  Date:   2015-09-12 (Sat, 12 Sep 2015)

  Changed paths:
    M std/file.d

  Log Message:
  -----------
  Add test for issue 14817


  Commit: edc405cacd1a60c3e09236bc8b2cca39b271e6b3
      https://github.com/D-Programming-Language/phobos/commit/edc405cacd1a60c3e09236bc8b2cca39b271e6b3
  Author: Steven Schveighoffer <schveiguy at yahoo.com>
  Date:   2015-09-18 (Fri, 18 Sep 2015)

  Changed paths:
    M std/algorithm/mutation.d
    M std/file.d

  Log Message:
  -----------
  Merge pull request #3649 from DmitryOlshansky/poita--issue14817

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


Compare: https://github.com/D-Programming-Language/phobos/compare/b6dd28da4c33...edc405cacd1a


More information about the phobos mailing list