I have a code that condenses substantially to
#define FOO(a)
FOO(std::map<int, int>);
But it emits a compilation error (there are too many actual parameters for the macro FOO).
Obviously, the preprocessor think that I have set std::map<int, and int>as arguments.
Is there any way around this? Therefore, the preprocessor will not process the quoted string with a comma.
source
share