Skip to content

Non-trivial class hierarchies don't work #610

Open
@adetaylor

Description

@adetaylor

We can create a subclass C of class B, but probably not if B is a subclass of A and A has virtual methods.

We could handle this one of two ways:

  • (simple) When creating B_methods and B_super we could just include all virtual methods from A;
  • We could create A_methods and have that as a trait bound on B_methods. That's probably the right way to do stuff, but is a bit more complex to get right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cpp-featureC++ feature not yet supportedknown-subclass-limitationKnown limitation of the experimental subclass work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions