Boost logo

Boost :

Subject: [boost] [boost-mpl] question about using template template class
From: Damian Vicino (damian.vicino_at_[hidden])
Date: 2014-07-20 21:49:18

I quoted a template class to put it into a mpl::vector doing this:

boost::mpl::vector<int, boost::mpl::quote2<std::pair>>

Then, I obtained the 2nd element like this:

using A=typename boost::mpl::at<T, boost::mpl::int_<2>>::type;

I need now to pass the original template class to a class like this:

template<class A, template<class, class> class C>
class B{
     C<A, B*> _c;

I'm tried using apply or bind, but couldn't figure out the way to make it in a way that B accept it as second parameter.

I get errors of the kind:

error: template argument for template template parameter must be a class template or type alias template

I also posted the question in stack overflow so if someone participates in stack overflow and want some potints the question is:

Thanks in advance,

Boost list run by bdawes at, gregod at, cpdaniel at, john at