Boost logo

Boost :

Subject: Re: [boost] The Lonely Song of the MPL Maintainer -- or Boost support for antediluvian compiler and the future supprot of C++11
From: Christopher Jefferson (chris_at_[hidden])
Date: 2011-08-16 05:16:16


I discovered a workaround to this problem. It is a bit annoying in use, but does work:

template<template <typename...> class T, typename... Args>
struct TypeJoin
{ typedef T<Args...> type; };

template<typename T1=int,typename T2=int, typename T3=int>
struct my_tuple {};

template<typename… T>
struct X
{
        // my_tuple<T…> tt; <- This won't compile.
        typename Join<my_tuple, T…>::type t;
};

On 15 Aug 2011, at 20:31, Joel falcou wrote:

> On 15/08/11 21:26, Jeffrey Lee Hellrung, Jr. wrote:
>> Sorry for the ignorance, but it isn't as simple as boost::mpl::vector< T...
>
> You can not pass a template argument pack to a old fashioned enuemrated list of template parameters.
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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