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


Hi,
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: http://stackoverflow.com/q/24856504/861649?sem=2

Thanks in advance,
Damian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk