
How? I read the docs you referenced (previously), but I did not see a
concrete example.
typedef typename boost::result_of< ...what goes here???... (double)>::type
f_double_return_type;
terry
----- Original Message -----
From: "Kim Kuen Tang"
Hi Terry,
Terry Golubiewski schrieb:
If I have a class...
struct X { int f(double x); void f(int y); };
.... and a template Y that wants to deduce the return-type of some member functions of T...
template<class T> struct Y { typedef typename what_goes_here<T>::type f_double_return_type; typedef typename what_goes here<T>::type f_int_return_type; };
you should use boost::result_of to do such of things.