|
Boost : |
From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-02-07 09:30:19
Giovanni Piero Deretta wrote:
>> void foo() {}
>> result_of<T_a_func_obj(???)>::type r = a_func_obj(foo);
>>
>> What should ??? be?
>
> Something like:
>
> result_of<T(void(*)())>::type
If `&foo` is passed.
> Or if you prefer a reference (not sure about the syntax)
>
> result_of<T(void(&)())>::type
I think this is the only choice.
I've found:
3.10/2
An lvalue refers to an object or function.
So, `foo` must be lvalue!?
Regards,
-- Shunsuke Sogame
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk