Skip to content

py::module_local() missing in bindings #91

@DaniGodin

Description

@DaniGodin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions