[phobos] [D-Programming-Language/phobos] a4f1cb: fix Issue 14300 - DList casting to base type is br...

GitHub via phobos phobos at puremagic.com
Thu Mar 19 23:35:58 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: a4f1cb07d2d0a5efe8f1ad9684c50f89a6080d37
      https://github.com/D-Programming-Language/phobos/commit/a4f1cb07d2d0a5efe8f1ad9684c50f89a6080d37
  Author: Martin Nowak <code at dawg.eu>
  Date:   2015-03-20 (Fri, 20 Mar 2015)

  Changed paths:
    M std/container/dlist.d

  Log Message:
  -----------
  fix Issue 14300 - DList casting to base type is broken

- All insert methods should take `auto ref T t`
  instead of `Stuff t`, because the latter is
  an unnecessary temporary if `Stuff` isn't `T`.

- Small, copyable, register sized Ts should always be
  passed by-value instead of auto ref.


  Commit: 602dff55a78029930a918b5f96d79f7697bfd65c
      https://github.com/D-Programming-Language/phobos/commit/602dff55a78029930a918b5f96d79f7697bfd65c
  Author: Walter Bright <walter at walterbright.com>
  Date:   2015-03-19 (Thu, 19 Mar 2015)

  Changed paths:
    M std/container/dlist.d

  Log Message:
  -----------
  Merge pull request #3082 from MartinNowak/fix14300

fix Issue 14300 - DList casting to base type is broken


Compare: https://github.com/D-Programming-Language/phobos/compare/392fb2475ab1...602dff55a780


More information about the phobos mailing list