Boost logo

Boost :

From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2008-02-07 08:02:08


On Feb 7, 2008 11:07 AM, shunsuke <pstade.mb_at_[hidden]> wrote:
> Hi,
>
> function name is not object.
> So, I don't know whether function name is lvalue or rvalue.
> For example,
>
> void foo() {}
> result_of<T_a_func_obj(???)>::type r = a_func_obj(foo);
>
> What should ??? be?

Something like:

  result_of<T(void(*)())>::type

Or if you prefer a reference (not sure about the syntax)

  result_of<T(void(&)())>::type

Note: totaly untested of course :)

HTH,

--
gpd

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk