Why doesn\'t the commented out line in the following program compile?
#include #include using namespace std; #define F1(a) 1 in
Another workaround is to transform your macro into a variadic macro
#define F1(...) 1
Or, in a more general case:
#define M(a) a
into
#define M(...) __VA_ARGS__