Skip to content

Consider refactoring references into template parameters #2370

Description

@Andersama

Verification

  • I searched for similar issues (including closed issues) and found none was relevant.

Introduce the issue

It's possible to incorporate references to static / global variables as template parameters. Instead of building out types like HeartRateTask etc with constructors to local variables, the references could be built directly into the type.

May save a few bytes of stack space.

Preferred solution

No response

Version

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions