C++11 で lua バインディングを作成しています。可変個引数テンプレートで各タイプを処理したい。
私はこのようなことをすることができると考えていましたが、使用Params...
はその中のすべての型を表し、可変引数関数パラメーターのようにその中の次の単一の型ではありません。
template <class T, typename ReturnType, typename... Params>
struct MemberFunctionWrapper <ReturnType (T::*) (Params...)>
{
static int CFunctionWrapper (lua_State* luaState)
{
for(int i = 0; i < sizeof...(Params); i++)
{
//I want to get the next type, not all of the types
CheckLuaValue<Params...>();
//Do other stuff
}
}
};
どうすればこれを行うことができますか?