
28 Jan
2010
28 Jan
'10
3:09 p.m.
Matheus Araújo Aguiar wrote:
We need to implement some callbacks, but we don't want to declare a boost::function to every different callback,
When you say "callback," I assume that some particular place in your code is calling the passed boost::function. That call is passing some particular set of arguments. Why not declare a boost::function with a signature matching the call, so the compiler can perform appropriate conversions?