fix various iterator issues (fixes #181)

This commit is contained in:
Wenzel Jakob
2016-04-27 14:33:52 +02:00
parent a01977ec96
commit 6ca6e82f7c
4 changed files with 60 additions and 10 deletions

View File

@@ -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));
});
}