
6 Aug
2006
6 Aug
'06
12:03 a.m.
This looks very nice. I hope the standards committee accepts it. I do have one question: is it possible to define a variadic function such that all the variadic parameters are of the same type? This would be useful, for instance, to define a max() function that can finds the max value of any number of parameters: long x1, x2, x3, x4, x5; // Some code const long &max_x = max(x1, x2, x3, x4, x5); If this is possible, would it be possible to define a variadic function without making it a template function? Joe