I have one very interesting question about preprocessor directives in c++.
Consider the following macros and his usage:
#define FUNCTION(a, b) void (a)(int ¤t, int candidate)\
{\
if ((current b candidate) == false){\ // Marked Line
current = candidate;\
}\
}
FUNCTION(minimum, <)
FUNCTION(maximum, >)
My question is why changing the "Marked Line" with the following line of code won't even compile:
... if ((current (b) candidate) == false) ...