
12 Dec
2009
12 Dec
'09
3:49 p.m.
Did you look at Boost.FunctionTypes ? What about using function_traits::return_type ?
The problem is that I do not even know the function the return type I want to know because it is the result of a<b. If operator<(A,B) does not exist there may be another operator< that is still fine with appropriate convertions. So what I really want is the type of an expression, not of a function, the expression being a<b. Frédéric