Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-09-25 20:34:33

"Joel de Guzman" <joel_at_[hidden]> wrote in message
> Joel de Guzman wrote:
>> Andy Little wrote:
>>> OK. FWIW I found that creating a sequence by pushing_back result_types to
>>> an
>>> empty vector is a great way to 'create' a result sequence at compile time.
>>> It
>>> kind of creates something out of nothing.
> Oh, and BTW, have you considered using fusion::cons? If you are doing
> lots of sequence building, then cons is a very viable option. For
> example, with expression templates, cons can build the ET tree
> more efficiently than push_back/vector.

Funnily enough I hadnt thought about it. looking at the docs, both list and cons
might be better for constructing the sequence and less compile expensive maybe.

Will add it to the things to try list :-)

Andy Little

Boost list run by bdawes at, gregod at, cpdaniel at, john at