commit | 6ca6e82f7c766a0894327571fd1057a191198572 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Wed Apr 27 14:33:52 2016 +0200 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Wed Apr 27 14:33:52 2016 +0200 |
tree | 4f74fba12de6f37cc77c29a7123064d380408241 | |
parent | a01977ec96a98c6674b016ce7cef82d49dc9c04c [diff] [blame] |
fix various iterator issues (fixes #181)
diff --git a/example/issues.cpp b/example/issues.cpp index c8af756..1fa4d57 100644 --- a/example/issues.cpp +++ b/example/issues.cpp
@@ -57,4 +57,9 @@ 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)); + }); }