[phobos] [D-Programming-Language/phobos] dacbef: Add asserts in Copy (and remove an enforce)

GitHub noreply at github.com
Sun Mar 30 12:50:28 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: dacbef4c982f682541a52f38b583c7c884d524df
      https://github.com/D-Programming-Language/phobos/commit/dacbef4c982f682541a52f38b583c7c884d524df
  Author: monarch dodra <monarchdodra at gmail.com>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Add asserts in Copy (and remove an enforce)

Adding extra asserts always helps. As for the enforce, I'm unsure why it was there in the first place: All the other branches simply make the assumption the target is large enough.


  Commit: 98434a51811c11d1704ba9a67a593fb074641115
      https://github.com/D-Programming-Language/phobos/commit/98434a51811c11d1704ba9a67a593fb074641115
  Author: Dmitry Olshansky <dmitry.olsh at gmail.com>
  Date:   2014-03-30 (Sun, 30 Mar 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Merge pull request #2052 from monarchdodra/copyAssert

Add asserts in Copy (and remove an enforce)


Compare: https://github.com/D-Programming-Language/phobos/compare/f7c9a1f0abb0...98434a51811c


More information about the phobos mailing list