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-14 08:11:06


Tim Blechmann <tim <at> klingt.org> writes:

>
> > template<typename SuperMeta,typename TagList>
> > inline boost::mpl::true_* boost_foreach_is_noncopyable(
> > boost::multi_index::detail::sequenced_index<SuperMeta,TagList>*&,
> > boost::foreach::tag)
> > {
> > return 0;
> > }
> >
> > Unfortunately Qt (in some configuration modes, at least), defines
> > a macro foreach to Q_FOREACH, which produces the following problem,
> > even if Boost.Foreach was not intended to be used:
>
> btw, this can easily be workarounded by using push_macro/pop_macro
> pragmas on the most widely used compilers.

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

> i've submitted some pull requÑ́…‰½ÕЁѡ¥Ì™½ÈÍ•Ù•É…°±¥‰É…É¥•Ì°‰ÕÐ(øÍ½µ”‘•Ù́ÁÉ•™•ÈÑ¼‰±…µ”ÅЁ™½È¥¹Ñɽ‘Ս¥¹œÁÍ•Õ‘½­•åݽɑ́¥¹ÍÑ•…½˜(øµ•É¥¹œÑ¡”Ý½É­…ɽչ‘Ì()Q¡”Áɽ‰±•´¥ÌÑ¡…Ё‰±…µ¥¹œEЁÁÕÑ́ѡ”‰ÕÉ‘•¸½¸Ñ¡•¥È‰±…µ•±•Í́ÕÍ•É̸¸¸)$´…±°™½ÈÝ½É­…ɽչ‘́¥˜Ñ¡•äÉ”¹½Ð½Ù•É­¥±°¸())½…Å×µ¸43ÍÁ•è5׎è)Q•±•›͹¥„(


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk