boostorg / foreach

Boost.org foreach module
http://boost.org/libs/foreach
9 stars 36 forks source link

foreach: work around nameclash with the Qt foreach macro #4

Open timblechmann opened 9 years ago

ericniebler commented 9 years ago

Does this patch even help? It makes it possible to #include foreach.hpp without errors, but does it make it possible to use BOOST_FOREACH in Qt translation units?

timblechmann commented 9 years ago

sure. one can use both BOOST_FORECH and foreach (as alias for Q_FOREACH). multi_index will need a similar patch to guard boost::foreach::tag, though.