Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2007-01-19 20:23:17


Tobias Schwinger wrote:

>> I guess you have to make sure that mpl::sequence_tag returns
>> fusion::fusion_sequence_tag. An easy way to do it is to add a 'tag' type
>> member.
>>
>> struct my_seq
>> {
>> typedef fusion::fusion_sequence_tag tag;
>> // ...
>
> Sidenote: Although all Sequences provided by Fusion are MPL Sequences
> (because of that 'tag' type member), it is possible to /write/ a Fusion
> Sequence that is not an MPL Sequence by omitting that type member...

That supports my quick theories. For Sohail, who's doing a non-intrusive
adaptation, he'll need to specialize the mpl::sequence_tag.

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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