Boost logo

Boost :

Subject: Re: [boost] [mpl] is there a or_seq like logical metafunction?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-02-13 19:45:42


On 02/13/09 11:36, Larry Evans wrote:
> On 02/12/09 17:16, Larry Evans wrote:
[snip]
> [snip]
>> when only the last one is really needed. Which
>> leads to the obvious (at least now) optimization
>> of just making State as the last element in the
>> eval_if super of while_.
>
> I tried this with results shown in boost vault/Template
> Metaprogramming/and_seq_profile.while_no_else.zip.
>
> This "op[timization" was ineffective. There were
> 303 instantiations vs. the 297 in the original
> version :( .

Changing equal to is_same (and making adjustments to where
::type is placed) resulted in just 185 instantiations!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk