Created
July 16, 2018 06:39
-
-
Save fortheday/7caf07abccfdc0e927935010458afd41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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