-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support for iterator constructors/deduction guides #61
Comments
@Ryan-rsm-McKenzie Thanks for your question/suggestion. I wasn't aware yet of these deduction guides. I'll take a look, will not be immediately though. |
span iterator deduction guide: template<class It, class EndOrSize>
span(It, EndOrSize) -> span<remove_reference_t<iter_reference_t<It>>>; Constraints: It satisfies contiguous_iterator. |
The new deduction guides are failing to deduce reference types for iterators, presumably because of this line: span-lite/include/nonstd/span.hpp Line 665 in 81f7b15
Here's a godbolt link. |
Thanks @Ryan-rsm-McKenzie for your feedback. Currently my attention is a bit too scattered to do a good job in one go. A little back and forth may help :) Having a look at it... |
@Ryan-rsm-McKenzie I think this issue can be closed, otherwise please reopen it. |
You're missing an iterator based constructor, so code like this won't compile. |
I can't re-open the issue because you closed it |
this works |
Thanks @Ryan-rsm-McKenzie ! |
Is any support for this planned? See here and here for reference.
The text was updated successfully, but these errors were encountered: