22 Aug
2010
22 Aug
'10
6:21 p.m.
AMDG jungleman wrote:
I have some problems on function template bind.
the original usage of bind is : bind(func, _1, _2), and I wonder whether I can modify the parameters before pass them into bind, for example, functype function = bind(func, *_1, *_2).
So that, when I use function(a, b), it will do like this: func(*a, *b).
May it work, or some way else to do this? I just wanna do this in one line code.
Use Boost.Lambda. In Christ, Steven Watanabe