Skip to content

Resolve Vtable slot issue with generic base class #19

@RedBrumbler

Description

@RedBrumbler

if the base class of a type is generic, and that is the type that a vtable slot needs to be resolved for, the generic parameter is lost in the source file, example:

// header
class A : B<float> {
    void thing();
}

// source
void A::thing() {
    ...
    ___internal__method = resolveVtableSlot(this, classof(B<T>*));
    ...
}

obviously this is very simplified but I hope this makes the issue clear enough to understand.

the B<T>* should obviously be B<float>* there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions