mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
fix various iterator issues (fixes #181)
This commit is contained in:
@@ -57,4 +57,9 @@ void init_issues(py::module &m) {
|
||||
v.push_back(p4);
|
||||
return v;
|
||||
});
|
||||
|
||||
// #181: iterator passthrough did not compile
|
||||
m2.def("iterator_passthrough", [](py::iterator s) -> py::iterator {
|
||||
return py::make_iterator(std::begin(s), std::end(s));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user