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

Add literals for contexts #196

Open
AmroAlJundi opened this issue Oct 6, 2022 · 0 comments
Open

Add literals for contexts #196

AmroAlJundi opened this issue Oct 6, 2022 · 0 comments
Labels
state: inactive Issue is abandoned, but might become relavent at some point type: feature Brand new functionality, features, workflows, endpoints, etc

Comments

@AmroAlJundi
Copy link
Contributor

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

Use it for contexts.

Rather than doing:

CPUContext cpu;
Reorder(format, {&cpu});

We can do :

Reorder(format, {_CPU});

And the returned address can be a unique pointer so we won't have to manage the memory there.

@AmroAlJundi AmroAlJundi added state: inactive Issue is abandoned, but might become relavent at some point type: feature Brand new functionality, features, workflows, endpoints, etc labels Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: inactive Issue is abandoned, but might become relavent at some point type: feature Brand new functionality, features, workflows, endpoints, etc
Projects
None yet
Development

No branches or pull requests

1 participant