Skip to content

Instantly share code, notes, and snippets.

@fortheday
Created July 16, 2018 06:39
Show Gist options
  • Save fortheday/7caf07abccfdc0e927935010458afd41 to your computer and use it in GitHub Desktop.
Save fortheday/7caf07abccfdc0e927935010458afd41 to your computer and use it in GitHub Desktop.
#pragma warning(disable : 4100)
#define DO_NOTHING(...)
template<typename... T_VARIADIC>
void ProcessVariadicParams_T(T_VARIADIC... params)
{
DO_NOTHING(params...);
}
template<typename... T_VARIADIC>
void ProcessVariadicParams_T_move(T_VARIADIC&&... params)
{
DO_NOTHING(params...);
}
void TestVariadic()
{
ProcessVariadicParams_T(1, 2);
ProcessVariadicParams_T_move(3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment