Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion][concept] sequence_base
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-13 13:51:02


AMDG

Pieter Op de Beeck wrote:
> // simplified concept that requires from the model a member function
> 'foo' taking in a fusion:sequence_base
> template<class Model, typename SequenceT>
> struct concept
> {
> template <void (Model::*) (boost::fusion::sequence_base<SequenceT>
> const&) const>
> void model_requires_foo();
>

This doesn't work for list because fusion::list inherits from
sequence_base<cons<...> > not from sequence_base<list<...> >

In Christ,
Steven Watanabe


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