|
Boost Users : |
Subject: [Boost-users] Passing signals as functions
From: Remko Tronçon (remko_at_[hidden])
Date: 2008-12-30 14:10:13
Hi,
I have a signal
boost::signal<void ()> foo
that I would like to pass to a function taking a function<void ()>.
Currently, I pass the pointer to a helper function that calls foo(),
but I suspect there's an easier way.
Same goes for the more advanced case, where i have a signal
boost::signal<void (Bar)> foo
which i would like to the same function (taking a function<void ()>),
after binding the signal parameter to a specific value. Does anyone
know how to do this as well?
thanks,
Remko
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