Skip to content

[FEAT] Easier way to alter function signatures for PYBIND11_OVERRIDE*? #2813

Open
@EricCousineau-TRI

Description

@EricCousineau-TRI

Motivated by post here:
#2812 (comment)

One minor pain point I've ran into is wrapping calls to PYBIND11_OVERRIDE* macros.

We've worked around in Drake, but it ain't pretty. Example (older fork of pybind11, so you'll need to munge the names):
https://github.com/RobotLocomotion/drake/blob/6ee5e9325821277a62bd5cd5456ccf02ca25dab7/bindings/pydrake/systems/framework_py_systems.cc#L110-L159

As mentioned in the code, part of the reason for this was #1241 (return values, const lvalues, etc.).

\cc @YannickJadoul

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions