Replies: 1 comment
-
In the meantime, is it possible to add a default constructor for detail::fast_iterator? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm looking for an elegant replacement of
boost::python::stl_input_iterator<>()
in nanobind.I'm porting a large code base that provides wrappers for the CGAL library.
An example of the existing code follows
Both,
Polygon_2
andPoint_2
types are wrapped via theclass_
construct.As you can see, the
Polygon_2
class has a constructor that accepts a (begin,end) pair.It also supports the default constructor and a
.push_back()
method, so the code above can be converted to:Naturally, it is possible to implement an input iterator equivalent of
stl_input_iterator<>()
, but I wonder whether there already exists an elegant replacement.Thanks,
Efi
Beta Was this translation helpful? Give feedback.
All reactions