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

topaz::zip_iterator does not return references #1

Open
hamsteri15 opened this issue Nov 9, 2023 · 0 comments
Open

topaz::zip_iterator does not return references #1

hamsteri15 opened this issue Nov 9, 2023 · 0 comments

Comments

@hamsteri15
Copy link
Owner

The implemented zip_iterator::dereference() always returns a tuple of dereferenced values of the underlying iterators. This makes it unusable for transform like algorithms which is clearly wrong. The issue is in the dref_tuple_elements function which should somehow check if the *it is a rvalue reference (from a transform operation) in which case value should be returned. Otherwise it should return a tuple of lvalue references so that assignment is possible.

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

No branches or pull requests

1 participant