I have some code that essentially condenses down to
#define FOO(a)
FOO(std::map<int, int>);
But it emits a compile error (too many actual parameters for macro FOO
).
Obviously the preprocessor is thinking that I've supplied std::map<int
and int>
as arguments.
Is there a way round this? The preprocessor will not treat a quoted string with a comma in this way.