Both arguments are guaranteed to be integers.
How to write myMax so that:
myMax<1, 2>; // 2 myMax<3, 2>; // 3 ?
I want this to be evaluated at compile time, and not at runtime. (You must then use this with sizeof for the type list to make room for the variant.)
Thanks!
source share