-
-
Notifications
You must be signed in to change notification settings - Fork 747
Move emplace to core/lifetime #6881
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
Conversation
|
Thanks for your pull request and interest in making D better, @edi33416! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf 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 + phobos#6881" |
std/conv.d
Outdated
| assert(iss.ii == [1, 2]); | ||
| } | ||
| /// ditto | ||
| T emplace(T, Args...)(T chunk, auto ref Args args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to include the template constraints for the docs - e.g. if (is(T == class)), IIRC, for this overload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I can add the template constraint in the function declaration. I tried to do that, but I couldn't get it to compile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this will only exist when building the docs, you can use a full function definition with a trivial body - e.g. { return chunk; }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZombineDev added the template constraints for the docs.
f85acb3 to
e799105
Compare
|
On the auto tester there were a couple of OOM failures which I restarted, but also one failure on Windows: On BuildKite there the following two errors: (when building the druntime benchmark, which uses phobos) and: (simply style check warnings) |
|
This has been done in: #7745 . Closing. |
Remove code duplication by using the
druntimecore.lifetimeimplementation.This depends on this PR.