|
Boost Users : |
Subject: [Boost-users] [boost::function] Is there a way to assign a generic function, regardless number of parameters?
From: Matheus Araújo Aguiar (matheus.pit_at_[hidden])
Date: 2010-01-28 09:27:13
Hello list,
My doubt is simple. We need to implement some callbacks, but we don't want
to declare a boost::function to every different callback, we just want to
declare one generic boost::function to receive any function, with any number
of parameters (the return type may be one well defined, no problem with that
in our case). Is there a way to do this? What we want to do is something
like is done in the asynchronous methods of boost::asio when passing the
callback to the async operation.
TIA,
-- Matheus Araújo Aguiar Computer Scientist matheus.pit_at_[hidden]
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