
7 Feb
2008
7 Feb
'08
2:30 p.m.
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