Is there a way to define variadic template macro just like variadic macro?
For example, if define variadic macro like:
#define PRINT_STRING(fmtId, ...) {
CString fmt;
fmt.FormatString(fmt, ##__VA_ARGS__);
cout << fmt << endl; }
Could we define something like:
#define PARSE_FUNCTION(functionName, typename...)
std::function<int(typename...)> m_##functionName(){
return (std::function<int(typename...)>) functionName; }
See Question&Answers more detail:os