detail::fast_iterator might satisfy ont of the iterator concepts from the STL #116
Simon-Lopez
started this conversation in
Show and tell
Replies: 1 comment
-
This commit was merged in the meantime, thanks for the PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
With a few additional lines the
detail::fast_iterator
could satisfystd::forward_iterator
concept.(cf. a proposal commit here).
This would then make for example
nanobind::list
satisfying the std::ranges::range concept and we could use onnanobind::list
all the goodies that come with std::ranges (or range-v3).More explicitely the following code fails on my machine (gcc 11.3) without the proposed modifications:
Beta Was this translation helpful? Give feedback.
All reactions