
15 Jul
2008
15 Jul
'08
9:43 a.m.
Peng Yu <pengyu.ut <at> gmail.com> writes:
Hi,
template <typename T, typename R> class A;
I would like a template function, whose argument should be of the type like.
boost::fusion::vector<A<T, R1>, A<T, R2>,...>
I would use something like this: template <class T> enable_if<is_vector_of_A_T_R<T> >::type foo(const T& arg) { ... } Where is_vector_of_A_T_R<T> is a metafunction, that returns true iif T is a fusion::vector of desired structure. Roman Perepelitsa.