[Bind] Increasing the max number of arguments bind supports?

We just ran into a need for passing 12 arguments to boost::bind(), which only supports up to 9 arguments. Is there any way to (easily?) increase this number? With Function, one can just set BOOST_FUNCTION_MAX_ARGS to change the value; does/could Bind have something similar? Doug

On Wednesday 07 July 2004 5:41 am, Peter Dimov wrote:
Doug Gregor wrote:
We just ran into a need for passing 12 arguments to boost::bind(), which only supports up to 9 arguments.
Twelve arguments? I'd like to see that example. ;-)
It's a good one :) In this case, I almost had a nonbeliever convinced that bind was The Way, and it was all good until his function jumped from 9 arguments to 12. He's now switched over to a configuration object and is picking on me because templates did lead to more readable code (but not in the way we wanted...). C'mon, take a hit of the preprocessor metaprogramming crack. You *know* you want to :) Doug

Doug Gregor wrote:
On Wednesday 07 July 2004 5:41 am, Peter Dimov wrote:
Doug Gregor wrote:
We just ran into a need for passing 12 arguments to boost::bind(), which only supports up to 9 arguments.
Twelve arguments? I'd like to see that example. ;-)
It's a good one :)
In this case, I almost had a nonbeliever convinced that bind was The Way, and it was all good until his function jumped from 9 arguments to 12. He's now switched over to a configuration object and is picking on me because templates did lead to more readable code (but not in the way we wanted...).
C'mon, take a hit of the preprocessor metaprogramming crack. You *know* you want to :)
Shouldn't that be "take a crack at the preprocessor metaprogramming ...". Geez, these RPI grads sure write confusing English .... <g> .

Doug Gregor wrote:
On Wednesday 07 July 2004 5:41 am, Peter Dimov wrote:
Doug Gregor wrote:
We just ran into a need for passing 12 arguments to boost::bind(), which only supports up to 9 arguments.
Twelve arguments? I'd like to see that example. ;-)
It's a good one :)
In this case, I almost had a nonbeliever convinced that bind was The Way, and it was all good until his function jumped from 9 arguments to 12. He's now switched over to a configuration object and is picking on me because templates did lead to more readable code (but not in the way we wanted...).
Have you considered the possibility that he is right? ;-)
participants (3)
-
Doug Gregor
-
Edward Diener
-
Peter Dimov