“unpacking” a tuple to call a matching function pointer
I’m trying to store in a std::tuple a varying number of values, which will later be used as arguments for a call to a function pointer which matches the stored types. I’ve created a simplified example showing the problem I’m struggling to solve: #include <iostream> #include <tuple> void f(int a, double b, void* c) { … Read more