Boost logo

Boost Users :

Subject: Re: [Boost-users] [function] How to get boost::function parameters, return type.
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2011-04-12 15:37:35


On Tue, 12 Apr 2011 00:45:34 -0700, TONGARI <tongari95_at_[hidden]> wrote:

> 2011/4/12 Mostafa <mostafa_working_away_at_[hidden]>
>
>> Hi,
>>
>> Is it possible to decompose boost::function into it's "constituent"
>> parameters and return type, a la Boost.FunctionTypes?
>>
>
> http://www.boost.org/doc/libs/1_46_1/libs/type_traits/doc/html/boost_typetraits/reference/function_traits.html
>
>
> Is this what you want?

Unfortunately not, that only works on "function types", the type of
boost::function is some unspecified struct/class.

Mostafa


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