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

16 views
Skip to first unread message

"Claas H. Köhler"

unread,
Aug 8, 2011, 8:49:34 AM8/8/11
to boost...@lists.boost.org

I was wondering about the status of the above topic:
Does a boost implementation of an adaptor exist or is Sebastian's
suggestion the best alternative currently available?

His solution did not work out of the box for me, since g++-4.6
complained about an

"incomplete type std::tuple_size<const std::tuple<..."

However, when I replaced each occurence of std::tuple_size<X> by

std::tuple_size< typename std::remove_cv<X>::type >

everything seemed to work fine.

Regards
Claas

> 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
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Joel de Guzman

unread,
Aug 9, 2011, 5:14:29 AM8/9/11
to boost...@lists.boost.org
On 8/8/2011 8:49 PM, "Claas H. Köhler" wrote:
>
> I was wondering about the status of the above topic:
> Does a boost implementation of an adaptor exist or is Sebastian's
> suggestion the best alternative currently available?
>
> His solution did not work out of the box for me, since g++-4.6
> complained about an
>
> "incomplete type std::tuple_size<const std::tuple<..."
>
> However, when I replaced each occurence of std::tuple_size<X> by
>
> std::tuple_size< typename std::remove_cv<X>::type >
>
> everything seemed to work fine.

No, there is nothing official, yet. I'll need code + docs before I
can add it to the library. Sorry, code only will not be enough.
Alas, I do not have time to do it. Best I can do is review the code
and docs, if anyone cares to submit.

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

Reply all
Reply to author
Forward
0 new messages