27 Feb
2009
27 Feb
'09
11:44 p.m.
AMDG er wrote:
Is this feasible? How?
class Foo { template<typename Signature> struct result{};
template<typename F> struct result<(F::*f)(value_type)>{ typedef value0_type if f == foo, value1_type if f == bar type; };
value0_type foo(value_type); value1_type bar(value_type);
};
How do I invoke result_of to get the result type of F::foo(value_type)?
This is not what boost::result_of is for. In Christ, Steven Watanabe