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

structured bindings #57

Open
jamesdbrock opened this issue Sep 8, 2024 · 0 comments
Open

structured bindings #57

jamesdbrock opened this issue Sep 8, 2024 · 0 comments

Comments

@jamesdbrock
Copy link
Owner

C++ has had structured bindings since C++17. https://en.cppreference.com/w/cpp/language/structured_binding

Right now hffix requires only C++98. If we were to bump that requirement to C++17, then we could design the API for structured bindings.

Then all of the field conversion methods could return tuples instead of passing the stupid return-by-reference arguments. https://jamesdbrock.github.io/hffix/classhffix_1_1field__value.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant