[Boost-users] [fusion] adapt std::tuple to be a fusion sequence?

143 views
Skip to first unread message

Nathan Ridge

unread,
Jul 16, 2011, 8:30:48 PM7/16/11
to Boost Spirit Mailing List, Boost Mailing List

Hello,

Is it possible to adapt std::tuple to be a fusion sequence?

I'm thinking it may be possible to do it for a specific number
of elements using BOOST_FUSION_ADAPT_TPL_ADT, but I haven't
tried.

Is there some functionality like this already in fusion?

Thanks,
Nate.
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Akira Takahashi

unread,
Jul 19, 2011, 2:59:02 AM7/19/11
to boost...@lists.boost.org
Hi,

> Is it possible to adapt std::tuple to be a fusion sequence?
>

...


> Is there some functionality like this already in fusion?


There seems to be already the implementation.

https://svn.boost.org/svn/boost/sandbox/SOC/2009/fusion/

But, I don't know this implementation status.


Thanks.

>>========================
Akira Takahashi
mailto:faitha...@gmail.com
blog: http://d.hatena.ne.jp/faith_and_brave/

Sebastian Redl

unread,
Jul 19, 2011, 4:56:27 AM7/19/11
to boost...@lists.boost.org
On 19.07.2011 08:59, Akira Takahashi wrote:
> Hi,
>
>> Is it possible to adapt std::tuple to be a fusion sequence?
>>
> ...
>> Is there some functionality like this already in fusion?
>
> There seems to be already the implementation.
>
> https://svn.boost.org/svn/boost/sandbox/SOC/2009/fusion/
>
> But, I don't know this implementation status.
>
I also have one in my private tree.

Sebastian

Joel de Guzman

unread,
Jul 19, 2011, 7:21:05 AM7/19/11
to boost...@lists.boost.org
On 7/19/2011 4:56 PM, Sebastian Redl wrote:
> On 19.07.2011 08:59, Akira Takahashi wrote:
>> Hi,
>>
>>> Is it possible to adapt std::tuple to be a fusion sequence?
>>>
>> ...
>>> Is there some functionality like this already in fusion?
>>
>> There seems to be already the implementation.
>>
>> https://svn.boost.org/svn/boost/sandbox/SOC/2009/fusion/
>>
>> But, I don't know this implementation status.
>>
> I also have one in my private tree.

With docs? Well, patches welcome.

Regards,
--
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

Sebastian Redl

unread,
Jul 19, 2011, 7:44:33 AM7/19/11
to boost...@lists.boost.org
On 19.07.2011 13:21, Joel de Guzman wrote:
> On 7/19/2011 4:56 PM, Sebastian Redl wrote:
>> On 19.07.2011 08:59, Akira Takahashi wrote:
>>> Hi,
>>>
>>>> Is it possible to adapt std::tuple to be a fusion sequence?
>>>>
>> I also have one in my private tree.
> With docs? Well, patches welcome.
>
No docs. Also, this is just for the MSVC 10 (no-variadics)
implementation. It was just something I hacked up quickly because I
needed it for something internal.

Anyway, here it is.

Sebastian

fusion_std_tuple.h
Reply all
Reply to author
Forward
0 new messages