Skip to content

Lambda constructor for nb::class_ using nb::init<>. #34

Answered by wjakob
arashbm asked this question in Q&A
Discussion options

You must be logged in to vote

Good catch. This is an area where the syntax differs from pybind11, which wasn't documented.

Please see the README.md file at https://github.com/wjakob/nanobind, specifically the section on "Custom constructors"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@arashbm
Comment options

@wjakob
Comment options

Answer selected by wjakob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants