Skip to content

Structure code so that using Base::fn can automatically bind from the base class #281

Description

@virtuald

So if you have:

class Foo : public Bar {
public:
    using Bar::fn;

   void fn(whatever w); 
};

Currently robotpy-build (a) doesn't know its a function and (b) fn is present in Foo, but only the overloads that are in Foo, not the ones that are in Bar.

I could imagine that we could setup functions that the base class makes available (maybe in its trampoline?) where the original base class .def statements are called, but they get added to the child class instead.

This would probably be annoying to set up, I'm not sure it's worth it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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