
14 Feb
2009
14 Feb
'09
12:45 a.m.
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!