Skip to content

Feature Request: Add option to avoid generating template function implementations in files #383

@weirdbeardgame

Description

@weirdbeardgame

When a Generic Template is used on, Data Structures, Classes Functions etc. The compiler will auto-generate implementations for each type specified IE. Which have matching definitions acrossed several files, etc.

Now that Spimdisasm at least in the dev branch can detect symbol scope meaning symbols can be named the same, I'd like to request a feature that will prevent these implementations from being included as separate functions in these files given they all include the same header. They are simply using or calling the functions, data structures, etc.
Some References:
https://docs.oracle.com/cd/E19957-01/806-3572/Templates.html

https://stackoverflow.com/questions/19798325/how-does-the-compilation-of-templates-work

https://en.cppreference.com/w/cpp/language/templates

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