Subject: Re: [boost] [fusion] Fusion using varidiac templates
From: Joel de Guzman (joel_at_[hidden])
Date: 2012-03-12 10:23:13
On 3/12/12 10:40 AM, paul Fultz wrote:
> I remember seeing that there was an initial port of fusion to use variadiac
> templates a while back. Is that code available somewhere? If so, where
> could a find that?
A variadic fusion sequence is easy-peasy. I have one implementation
here that would probably go into the codebase sometime in the
future. OTOH, your std c++11 library should probably have a
variadic-savvy tuple already if your compiler supports variadics
(g++ does, MSVC doesn't (yet)).
Right now, fusion supports std::tuple as-is. You can use your
std::tuple just like any other fusion library. Simply include
fusion/adapted/std_tuple.hpp and you can use it just like any
other fusion sequence.
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk