Skip to main content

All Questions

Filter by
Sorted by
Tagged with
4 votes
2 answers
7k views

Generating function declaration using a macro iteration

I'm trying to generate a function declaration using a macro /* goal: generate int f(int a, float b) */ template<typename P> struct ptype; template<typename P> struct ptype<void(P)>...
Johannes Schaub - litb's user avatar