Skip to content

Fix const overloads of template methods - #97

Open
atoft wants to merge 2 commits into
anjo76:masterfrom
atoft:fix-const-template-overloads
Open

atoft wants to merge 2 commits into
anjo76:masterfrom
atoft:fix-const-template-overloads

Conversation

@atoft

@atoft atoft commented Sep 15, 2026

Copy link
Copy Markdown

Hi, in my project I tried to register two template methods of the form T@ GetComponent<T>() and const T@ GetComponent<T>() const, and received the following error when trying to call one of the overloads from script:
Template 'GetComponent' expects 1 sub type(s)

After some investigation the fix seems fairly simple so I thought it was worth a PR. Let me know if the included test is clear enough. Thanks!

@anjo76 anjo76 self-assigned this Sep 15, 2026
@anjo76 anjo76 added the bug Something isn't working label Sep 15, 2026
@anjo76

anjo76 commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Thanks. I'll review it and have it fixed as soon as possible.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants