I would like to know how can I create a c++ macro that would make an or between a given number of arguments, something like
#define aMacro(arg1,arg2,arg3,arg4) arg1==arg2 || arg1==arg3 || arg1==arg4
But with a varible number of arguments.
I know about varadic macros, I know they exist and I know there are some questions about it on SO but as far as I know none of them addresses my question on how to do the || part.
Thank you