Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DList.insertFront(range) regression - #15263. #3787

Merged
merged 1 commit into from
Oct 31, 2015

Conversation

rcorre
Copy link
Contributor

@rcorre rcorre commented Oct 31, 2015

As createNode was taking a value by ref, Dlist.insertFront could not be
called with a range with a non-ref front.

Fix by providing a createNode overload to use for non-ref values.
Resolves #15263.

@JakobOvrum
Copy link
Member

Just use auto ref?

As createNode was taking a value by ref, Dlist.insertFront could not be
called with a range with a non-ref front.

Fix by taking the value as `auto ref` instead of just `ref`.
Resolves #15263.
@rcorre
Copy link
Contributor Author

rcorre commented Oct 31, 2015

Doh, good point. Fixed.

@JakobOvrum
Copy link
Member

LGTM

@DmitryOlshansky
Copy link
Member

Auto-merge toggled on

DmitryOlshansky added a commit that referenced this pull request Oct 31, 2015
Fix DList.insertFront(range) regression - #15263.
@DmitryOlshansky DmitryOlshansky merged commit 820da8e into dlang:master Oct 31, 2015
@JackStouffer
Copy link
Member

If this is a regression fix, shouldn't this have gone into stable?

@DmitryOlshansky
Copy link
Member

If this is a regression fix, shouldn't this have gone into stable?

Crap, that's right. Anyhow CC @MartinNowak

@DmitryOlshansky DmitryOlshansky added this to the 2.069.0 milestone Oct 31, 2015
@rcorre rcorre deleted the dlist_insert_fix branch November 7, 2015 02:32
tramker pushed a commit to tramker/phobos that referenced this pull request Jan 27, 2016
Fix Issue 15263 - DList.insertFront(range) regression

Signed-off-by: Martin Krejcirik <mk@krej.cz>
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.

4 participants