
20 Sep
2009
20 Sep
'09
4:01 p.m.
Fusion uses boost::result_of to determine the return type of a call expression. Therefore you just need to define a result-metafunction. struct triple { template<typename Sig> struct result; template<typename Self, typename Arg> struct result<Self(Arg)> { typedef Arg type; }; //... }; -Christopher Jean-Louis Leroy schrieb:
...all the elements have the same type. How can it work with heterogeneous vectors ? What would be typedef'ed to result_type ?
Jean-Louis