Subject: Re: [boost] Variadic to Head/Tail TMP List
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-04-26 14:53:37
on Wed Apr 25 2012, Fernando Pelliccioni <fpelliccioni-AT-gmail.com> wrote:
> Is this piece of code useful ?
> The purpose is to tranform code like the following:
> typedef cons<int, cons<float, cons<char, cons<string>>>> t0;
> // fusion::cons or similar data structures
> typedef chain_generator<cons, nil> cons_gen;
> typedef cons_gen::gen<int, float, char, std::string>::type t1;
> I don't know if there is something similar in a library.
> I think it could be useful.
Quite possibly. What prompted you to write it?
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk