py::module_local() missing in bindings
DaniGodin opened this issue · 0 comments
DaniGodin commented
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