jamesdbrock / hffix

Financial Information Exchange Protocol C++ Library
http://jamesdbrock.github.io/hffix
Other
276 stars 89 forks source link

structured bindings #57

Open jamesdbrock opened 1 month ago

jamesdbrock commented 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