Skip to content

Use C++26 reflection #137

@gracicot

Description

@gracicot

Is your feature request related to a problem? Please describe.
C++26 is adding reflection. One primary use case is dependency injection.

Describe the solution you'd like
I would love to completely replace deducer to use reflection instead. This might show challenging as we do use forwarding in many places.

I would also change spread injectors to use reflection to infer the amount of parameters a function has. It will not always be possible due to forwarding, so the size deduction will still need to be there.

Constructor should reflect on the constructors to expose the same interface

Describe alternatives you've considered
N/A

Additional context
P2996
P3096

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions