Open jamesdbrock opened 1 month ago
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
field
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