Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Vtable slot issue with generic base class #19

Open
RedBrumbler opened this issue May 19, 2022 · 0 comments
Open

Resolve Vtable slot issue with generic base class #19

RedBrumbler opened this issue May 19, 2022 · 0 comments

Comments

@RedBrumbler
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant