|
Boost : |
Subject: [boost] [foreach] use of boost_foreach_argument_dependent_lookup_hack
From: Joaquin M LópezMuñoz (joaquin_at_[hidden])
Date: 2015-07-14 04:01:25
Hi,
Boost.MultiIndex indices, which are not copyable, interoperate with
Boost.Foreach by defining the following:
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:
My question is: would it be OK if the code above was rewritten like
template<typename SuperMeta,typename TagList>
inline boost::mpl::true_* boost_foreach_is_noncopyable(
boost::multi_index::detail::sequenced_index<SuperMeta
1¥ÍÐø¨°(½½ÍÑ}½É
¡}
ÉÕµ¹Ñ}Á¹¹Ñ}±½½ÕÁ}¡
¬¤)ì(ÉÑÕɸÀì)ô()ͼѡ
нÉ
¥Ì¹½ÐÙȵ¹Ñ¥½¹ü$Õ¹ÉÍÑ
¹Ñ¡
Ð ½½Íй½É
)ݽձÍÑ¥±°¹½Ðݽɬչ±ÍÌÑ¡µ
ɼ¥Ì¹½Ð¥¹°ÕÐÑ¡¥Ìݽձ)
б
ÍÐÍ
Ù ½½Íй5ձѥ%¹à°Ý¡¥ ½Í¸ÐÉ
±±äÁ¹½¸) ½½Íй½É
¸()Q¡
¹Ì½Èå½ÕȽµµ¹ÑÌ°())½
Å×µ¸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