I want to take a list of class templates, T 1 , T 2 , ... T N and have a list an MPL class list, where each template is created with the same parameter.
boost::mpl::list cannot be used with a list of template template parameters, only regular type parameters.
So the following does not work:
class A { ... }; template<template <class> class T> struct ApplyParameterA { typedef T<A> Type; } typedef boost::mpl::transform< boost::mpl::list< T1, T2, T3, T4, ... >, ApplyParameterA<boost::mpl::_1>::Type > TypeList;
How can I make it work?
source share