$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?