Hi,
Lets say I have an mpl vector defined as :
template <typename Traits>
struct A
{
};
template <typename Traits>
struct B
{
};
typedef mpl::vectormpl::_, Bmpl::_ > MyVec;
struct MyTraits {};
How do I 'apply' or transform MyVec with MyTraits?
ie. I want the mpl::vector ...
boost::mpl::vector;
I realise I can do mpl::applympl::_, MyTraits> to get A<MyTraits> but I
can't work out how to do the equivalent to the entire vector.
mpl::transform seems like what I should be using. Transform seems to do
apply internally, but I can't work out the syntax to do something like:
using substituted = typename boost::mpl::transform