lundi 29 décembre 2014

What is %:%: doing in this macro definition?

Consider the following code:



#include <iostream>
#define f(a,b) a%:%:b

int main()
{
int wtf = 0;
std::cout << f(wt,f) << '\n';
}

// output: 0


(live demo)


How is this possible? What magic is %:%:?!


Aucun commentaire:

Enregistrer un commentaire