
16 Nov
2011
16 Nov
'11
12:37 p.m.
I see a couple of possibilities for you: either #undef foreach before the above code, then #define it again afterwards, or use a name other than 'foreach'. Unfortunately (or not) this is just the way PP macros work, and why avoiding them is desirable - they are not namespaceable unlike real types & names.
Changing exiting code at this point is impossible. I might be forced to stay with multi-index version from 1.47. Cheers