Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi-index] foreach supports breaks compilation
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2011-11-16 07:37:37


> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net