Boost logo

Boost :

Subject: Re: [boost] [mpl] Is there anyone working on mpl with variadic templates ?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-10-20 07:45:42

On 10/20/09 05:18, luozhiyuan wrote:
> Is it possible that BOOST_MPL_LIMIT_/seq/_SIZE can be removed when we
> have variadic templates ?

Yes. Please see:

The compiler patch mentioned there how been applied:

One thing missing is a variadic version of arg<I>. What's
needed for that is some way to index the pack expansion. IOW,

template<int Idx>
struct arg
     template<typename... Args>
         typedef Args...[Idx] type;

where Args...[Idx] returns the Idx-th type in the
pack expansion, Args....

Apparently there's some problem about how that can be
expressed unambiguously. Search for "most-requested"


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