Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2005-01-12 14:52:50


"Arkadiy Vertleyb" <vertleyb_at_[hidden]> wrote in message
news:cs3j7p$jtp$1_at_sea.gmane.org...
> "Daniel Wallin" <dalwan01_at_[hidden]> wrote
>> MPL uses a template_arity meta-function and specializations on the arity
>> to work around this problem. Something like:
>>
>> template<class T, int N> struct do_something;
>>
>> template<template<class> class T, class P0>
>> struct do_something<T<P0>, 1>
>> {
>> };
>>
>> template<template<class, class> class T, class P0, class P1>
>> struct do_something<T<P0, P1>, 2>
>> {
>> };
>>
>> do_something<X, template_arity<X>::value>
>>
>> HTH,
>
> It does, thanks!
>
> Arkadiy

Does this mean it may (eventually) be possible to use template template
params in BOOST_TYPEOF ?

regards
Andy Little


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