
24 Nov
2009
24 Nov
'09
12:51 a.m.
maruthilakshman-boost@yahoo.com wrote: ...
I was hoping that if I have a twoarg_callback(int, int) function, I can register it with the module by using boost::bind to bind the first argument, but that is not possible. I am unable to assign the return value of boost::bind to a boost::function
object by binding one argument.
Use boost::bind( twoarg_callback, 3, _1 ). The 'int' in function