Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py::module_local() missing in bindings #91

Open
DaniGodin opened this issue Oct 4, 2021 · 0 comments
Open

py::module_local() missing in bindings #91

DaniGodin opened this issue Oct 4, 2021 · 0 comments

Comments

@DaniGodin
Copy link

Hey,

Not really a bug but I think a "good practice" when exposing c++ bindings with pybind11.
Could you please mark the binded objects as py::module_local() to avoid symbol conflicts with other library.

Example:

py::class_<libCZI::IntRect>(m, "BBox") ---> py::class_<libCZI::IntRect>(m, "BBox", py::module_local())

Best,

Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant