[fusion] Fusion using varidiac templates

hi, 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? Thanks, Paul

paul Fultz <pfultz2@yahoo.com> writes:
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?
http://ch.ristopher.com/git/?p=slim Aside from the different namespace Slim should be pretty much source compatible to Fusion. I renamed the namespace because I don't want to continue to provide patches for Spirit and Proto any more - both libraries rely on Fusion's internals, Spirit even on undocumented parts, and won't work out of the box with the port. You can use Slim and Fusion side by side. You should be able to switch between the interfaces without problems, that is, you are able to call Fusion's functions with Slim types and the other way round. Check <slim/adapted/fusion.hpp <slim/fusion.hpp> Christopher

On 3/12/12 10:40 AM, paul Fultz wrote:
hi, 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. Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com

Actually, I was looking for it, more for the functional parts of fusion(ie invoke, fuse, unfuse), than the sequences, since as you say std::tuple can be used in directly in fusion. ----- Original Message -----
From: Joel de Guzman <joel@boost-consulting.com> To: boost@lists.boost.org Cc: Sent: Monday, March 12, 2012 10:23 AM Subject: Re: [boost] [fusion] Fusion using varidiac templates
On 3/12/12 10:40 AM, paul Fultz wrote:
hi, 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.
Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Christopher Schmidt
-
Joel de Guzman
-
paul Fultz