Skip to content

Fix explicit template instantiation #1222

Open
@DanRStevens

Description

It seems explicit template instantiation was broken for Point and Rectangle, and doesn't exist for Vector.

The extern template declarations were accidentally removed for Point and Rectangle. It seems they were confused with the type aliases to the old non-template struct definitions that used to exist.

Added:

Removed:

We should fix Point and Rectangle, and add the missing explicit instantiation for Vector.


We should also consider adding explicit instantiation for the Signal types used in EventHandler.

Related:


Documentation:
https://en.cppreference.com/w/cpp/language/class_template

Activity

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

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