Skip to content

Handle 'auto' return type#16

Open
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:auto-return-type
Open

Handle 'auto' return type#16
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:auto-return-type

Conversation

@slburson

@slburson slburson commented Jul 1, 2026

Copy link
Copy Markdown

I had previously worked around the use of auto return types by editing the LibTorch headers, but I ran into more cases of them after narrowing the exclusions, and it didn't take long to find this fix that handles most cases. I did still have one instantiated template class with a method with auto return type that was still coming out as auto in the bindings, so this doesn't work perfectly, but if seems to be at least a 90% solution.

Seems to work in most cases, but for methods of an instantiated
template class, it can still give type 'auto'.
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

Successfully merging this pull request may close these issues.

1 participant