Boost logo

Boost :

Subject: Re: [boost] [foreach] use of boost_foreach_argument_dependent_lookup_hack
From: Joaquin M LópezMuñoz (joaquin_at_[hidden])
Date: 2015-07-15 02:20:56

Tim Blechmann <tim <at>> writes:

> >
> > I'm rather conversative and prefer a pragma-free workaround: I don't
> > know which exact compiler versions support push_macro etc.

Shouldn't you have

# undef foreach


# pragma push_macro("foreach")


> [push_macro] is supported by msvc for ages and by gcc since 4.6
> and clang ...

As for GCC, we're still testing 4.4 ( ). Besides,
there are other compilers outside the three big ones, so I'm not so
convinced about this patch.

I think it's fair to declare Boost.Foreach unusable in the presence of
"foreach" macros, and we should only strive to be resilient against
these for libs that do not depend on Boost.Fo… €¡…́¥ÌÑ¡”…Í”)™½È ½½Íй5ձѥ%¹‘•à°Ý¡¥ µ•É•±ä•¹ÍÕɕ́¥¹Ñ•É½Á•É…‰¥±¥ÑäÝ¥Ñ ¥Ð¤¸)M¼™…È°‘¥É•ÐÕÍ”½˜‰½½ÍÑ}™½É•…¡}…ɝյ•¹Ñ}‘•Á•¹‘•¹Ñ}±½½­ÕÁ}¡…¬Í••µÌ)µ½É”É½‰ÕÍи())½…Å×µ¸43ÍÁ•è5׎è)Q•±•›͹¥„

Boost list run by bdawes at, gregod at, cpdaniel at, john at