I need to interface with code that uses (misuses) tuples on the form:
using Tuple = std::tuple<double, double, double, double, int, int, int, int>; // etc..
I wonder if there is a way to define this tuples with templates instead in the form:
using Tuple = SomeType<4, double, 4, int>::Type; // expands to the above tuple
And specify the number of arguments instead of specify each type.
I would prefer to only use std libs, but boost is accepted. And I need it to work with c++14. It is easy to do with macros, but I already have a macro solution, and I do not like having macros in the code for this kind of code.
The tuple above is a small example. In reality the tuples is much larger, contains many more types and more of each type.