Skip to content

Possible nb::init_implicit breakage on MSVC due to initializer lists #122

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

You must be logged in to vote

This only works for constructors that actually exist in your type. You will need a placement new constructor as described in README.md, along with nb::implicitly_convertible<float, Counter>().

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nicholasjng
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