Boost logo

Boost Users :

Subject: Re: [Boost-users] Using Fusion adapted struct with mpl::is_sequence
From: Mike Tegtmeyer (tegtmeye_at_[hidden])
Date: 2009-12-07 12:30:32


adapted struct is broken in a couple of ways. I haven't tried your
problem but make sure it isn't a const issue. See
https://svn.boost.org/trac/boost/ticket/3322

Mike

On Sun, Dec 6, 2009 at 8:05 PM, John Smith <no.spam.mole_at_[hidden]> wrote:
> Hi,
> I have adapted a struct to be a fusion sequence like so:
> struct s
> {
>     uint8_t i;
>     uint8_t j;
>     uint8_t k;
> };
> BOOST_FUSION_ADAPT_STRUCT(
>     s,
>     (uint8_t, i)
>     (uint8_t, j)
>     (uint8_t, k)
> )
> which works fine.  However, I pass the adapted struct to my MPL algorithm
> and it seems to always return false on mpl::is_sequence.  If I typedef
> boost::fusion::fusion_sequence_tag tag in the struct, then it all works,
> also if I pass in a proper fusion sequence, then that works as well.  I was
> wondering if there was a different way of doing things, I don't really want
> to require the tag to be typedef'ed in the structure.
> Thanks,
> Dave
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net