|
Boost Users : |
Subject: Re: [Boost-users] [boost::function] Is there a way to assign a generic function, regardless number of parameters?
From: Nat Goodspeed (nat_at_[hidden])
Date: 2010-01-28 10:09:26
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?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net