Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dyn type erasure without macros #460

Open
danakj opened this issue Dec 23, 2024 · 2 comments
Open

Dyn type erasure without macros #460

danakj opened this issue Dec 23, 2024 · 2 comments
Labels
design Design of the library systems as a whole, such as concepts

Comments

@danakj
Copy link
Collaborator

danakj commented Dec 23, 2024

The current trait type erasure requires virtual and forwarding explicitly to the methods of the trait along with macros to help opt a type implementing a trait into erasure.

https://cpp-rendering.io/c-type-erasure-without-macros/ suggests a way to get rid of the macros here.

@danakj danakj added the design Design of the library systems as a whole, such as concepts label Dec 23, 2024
@ONKARBH
Copy link

ONKARBH commented Jan 19, 2025

@danakj Would you like to assign me this issue? I will try to resolve all the problems.

@danakj
Copy link
Collaborator Author

danakj commented Jan 20, 2025

I admit this is quite exploratory and underspecified at the moment. Maybe you could send a more detailed design proposal here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Design of the library systems as a whole, such as concepts
Projects
None yet
Development

No branches or pull requests

2 participants