Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fix issue 20468 - emplace should forward argument lvalueness correctly #2890

Merged
merged 1 commit into from Jan 8, 2020

Conversation

SSoulaimane
Copy link
Member

emplace passes arguments by ref instead of using forward, this fixes it.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @SSoulaimane!

Bugzilla references

Auto-close Bugzilla Severity Description
20468 normal emplace doesn't forward constructor arguments' (l/r)valueness

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + druntime#2890"

@dlang-bot dlang-bot added the Bug Fix Include reference to corresponding bugzilla issue label Jan 1, 2020
src/core/lifetime.d Outdated Show resolved Hide resolved
@SSoulaimane
Copy link
Member Author

It's ready now. I put forward everywhere it's needed and updated a couple of tests.

@dlang-bot dlang-bot merged commit 1c7b4cb into dlang:master Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Fix Include reference to corresponding bugzilla issue
Projects
None yet
3 participants