Skip to content

Conversation

MartinNowak
Copy link
Member

  • 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.

Issue 14300 – [2.067-rc1] 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.
@MartinNowak
Copy link
Member Author

I didn't threw out Stuff yet, because it's too big a change and we want the regression fixed for 2.067.

@MartinNowak MartinNowak added this to the 2.067 milestone Mar 20, 2015
WalterBright added a commit that referenced this pull request Mar 20, 2015
fix Issue 14300 - DList casting to base type is broken
@WalterBright WalterBright merged commit 602dff5 into dlang:master Mar 20, 2015
@MartinNowak MartinNowak deleted the fix14300 branch March 20, 2015 12:18
WalterBright added a commit that referenced this pull request Mar 20, 2015
fix Issue 14300 - DList casting to base type is broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants