Hi,
I realize this is not really a multi-index bug but after I updated
from 1.47 to 1.48
my code no longer compiles due to this code:
template
inline boost::mpl::true_* boost_foreach_is_noncopyable(
boost::multi_index::detail::sequenced_index*&,
boost::foreach::tag)
{
return 0;
}
with error:
Error 1 error C3083: 'BOOST_FOREACH': the symbol to the left of a '::'
must be a type c:\devel\boost_1_48_0\boost\multi_index\sequenced_index.hpp 926
Error 2 error C2039: 'tag' : is not a member of
'boost' c:\devel\boost_1_48_0\boost\multi_index\sequenced_index.hpp 926
Error 3 error C2061: syntax error : identifier
'tag' c:\devel\boost_1_48_0\boost\multi_index\sequenced_index.hpp 926
(similar errors for other indices)
this happens because as suggested in boost.foreach docs I have this earlier:
#define foreach BOOST_FOREACH
which (if I understand correctly) causes offending line to expand into:
boost::BOOST_FOREACH::tag
Is there anything easy I could do to fix this?
btw, 1.47 version has no explicit section marked as
/* Boost.Foreach compatibility */
yet I used BOOST_FOREACH macro on many indices all over the place.
Regards,
Simon