Closed juanjosegarciaripoll closed 1 month ago
nanobind iterators aren't C++17 iterators. They cannot be, to my knowledge. For example, some operations (like copying an iterator) would not even work since the iterators hold a reference to a Python iterator that is modified each time operator++
is called.
Problem description
It seems the iterator types in nanobind do not fulfill all requirements for c++17, according to Visual Code. Apologies for the error message being in Spanish, but it basically says that
nanobind::iterator::iterator_category
has the wrong type.Reproducible example code