I want some code that will enables me to do:
// Dummy function foo
double foo(double a){return a+1;}
// Some wrapping here ... which generates (maybe a pointer to)
double Foo(double a, ...){return a+1;}
// i.e. ignore any other arguments, just accept
It's mainly because I have a struct member that will store a pointer to function, say double (*)(double, double)
normally, but some case it has to store a pointer to a unary function (and I don't really want to use boost.variant).
EDIT: Sorry if I didn't say it clearly, but it should (somehow like a converter) that works for infinite unary functions of a same kind.