[Issue 14300] [2.067-rc1] DList casting to base type is broken

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 19 23:36:01 PDT 2015


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

--- Comment #3 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/a4f1cb07d2d0a5efe8f1ad9684c50f89a6080d37
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.

https://github.com/D-Programming-Language/phobos/commit/602dff55a78029930a918b5f96d79f7697bfd65c
Merge pull request #3082 from MartinNowak/fix14300

fix Issue 14300 - DList casting to base type is broken

--


More information about the Digitalmars-d-bugs mailing list