
"Joel de Guzman" <joel@boost-consulting.com> wrote in message news:ef9nr3$q38$1@sea.gmane.org...
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 :-) regards Andy Little