|
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> klingt.org> writes:
>
> >
> > I'm rather conversative and prefer a pragma-free workaround: I don't
> > know which exact compiler versions support push_macro etc.
>
> https://github.com/boostorg/foreach/pull/4/files
Shouldn't you have
# undef foreach
after
# 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 (http://tinyurl.com/no2q5wh ). 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¼
È°¥ÉÐÕͽ½½ÍÑ}½É
¡}
ÉÕµ¹Ñ}Á¹¹Ñ}±½½ÕÁ}¡
¬ÍµÌ)µ½ÉɽÕÍи())½
Å×µ¸43ÍÁè5׎è)Q±Í¹¥
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk