Boost logo

Boost :

From: Joe Gottman (jgottman_at_[hidden])
Date: 2006-08-05 20:03:00


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
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk