In a rush here, you want boost function_traits.
Damien
From: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On
Behalf Of Robert Dailey
Sent: Tuesday, February 05, 2008
5:00 PM
To: boost [usr]
Subject: [Boost-users] [function]
How to obtain the signature type?
Hi,
Currently I have the following:
typedef boost::function<void (int)> MyFunction;
Is there a typedef in the boost::function class for the Signature template
parameter? I need access to the function type passed into the boost::function
object. I've tried finding the boost::function class in the source, but that
turned out to be impossible. The documentation also does not explain how to do
this from what I saw.
Any help is appreciated.