
3 Sep
2008
3 Sep
'08
8:11 p.m.
Peng Yu wrote:
Hi,
std::min accepts only two arguments. When I have more than two arguments to compare, it becomes inconvenient. I'm wondering it is possible to added a min function that accepts any number of arguments in the future version of boost?
Yes, it could probably be done with pseudo-vararg preprocessor magic. However, the next standard contains a real vararg min. Given that, the question is how many people are willing to invest the effort. Pseudo-vararg code is a mess. Sebastian