You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template <typename T, typename U>
U add(T num1, U num2) {
return (num1 + num2);
}
#define sum add<int, double>(2,2.5)
#define foo(a, b) a
#define result foo(sum,3)
result
simplecpp output:
11623.cpp:7: syntax error: failed to expand 'result', Wrong number of parameters for macro 'foo'.
Activity
[-]Fail to expand macro[/-][+]Fail to expand macro, comma in inner macro[/+]Fix #292 (Fail to expand macro, comma in inner macro)
Fix cppcheck-opensource#292 (Fail to expand macro, comma in inner mac…