-
-
Notifications
You must be signed in to change notification settings - Fork 747
made joiner.front assignable #4887
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
|
|
||
| static if (hasAssignableElements!(ElementType!RoR)) | ||
| { | ||
| @property void front(ElementType!(ElementType!RoR) element) |
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.
auto ref perhaps?
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 auto ref args need to be templated? It didn't compile when I tried it.
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.
Right, they do.
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.
Maybe an overload in hasLvalueElements with a ref parameter would be appropriate?
|
I added a ref overload |
|
I improved the unittest |
|
I think just making |
|
This PR is for the case that the sub range has hasAssignableElements but does not have hasLvalueElements. |
|
Auto-merge toggled on |
|
@Superstar64 If reviewers go this long without commenting, please ping us! Sometimes things fall through the cracks. |
No description provided.