$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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