How would I 'generate variadic parameters'?
I need a way to pass a variable amount of parameters to a function in this circumstance: template<typename ...T> struct Lunch { Lunch(T...){} }; template<typename T> T CheckLuaValue(lua_State* luaState,int index) { //Do Stuff return value; } template <class MemberType, typename ReturnType, typename... Params> struct MemberFunctionWrapper <ReturnType (MemberType::*) (Params...)> { static int CFunctionWrapper (lua_State* luaState) { ReturnType (MemberType::*)(Params...) functionPointer = GetFunctionPointer(); MemberType* member = GetMemberPointer(); int index = 1; //Get a value for each type in