Boost logo

Boost Users :

From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2008-07-15 05:43:20


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net