Boost logo

Boost Users :

Subject: Re: [Boost-users] Using Fusion adapted struct with mpl::is_sequence
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-12-14 21:45:42


Christopher Schmidt wrote:
> John Smith schrieb:
> [snip]
>> 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.
>
> This is a bug. Fusion should provide a specialized implementation of
> mpl::sequence_tag for adapted structures. Please file a bug report.

FWIW, MPL Forward Sequence concept does not have this requirement.
Nor do any of its more specialized concepts. So technically, it is not
a bug, IMO.

http://www.boost.org/doc/libs/1_41_0/libs/mpl/doc/refmanual/forward-sequence.html

REgards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
http://www.facebook.com/djowel
Meet me at BoostCon
http://www.boostcon.com/home
http://www.facebook.com/boostcon

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