boost-1.34.0 recent change to foreach?

I noticed that code I have using foreach which used to work is now giving segfault. I haven't traced it (and don't have time now), but I am sure that changing the code from BOOST_FOREACH back to a manual for loop fixes it. This is on gcc4.1.1, (linux). This code had been working with boost cvs versions as of a few weeks ago. The other diff is that boost is now built with v2, but I don't see how that would cause such a problem.

Neal Becker wrote:
I noticed that code I have using foreach which used to work is now giving segfault. I haven't traced it (and don't have time now), but I am sure that changing the code from BOOST_FOREACH back to a manual for loop fixes it.
This is on gcc4.1.1, (linux).
This code had been working with boost cvs versions as of a few weeks ago.
The other diff is that boost is now built with v2, but I don't see how that would cause such a problem.
Nothing has changed in the foreach code in eons. It would help if you could send a small repro. -- Eric Niebler Boost Consulting www.boost-consulting.com
participants (2)
-
Eric Niebler
-
Neal Becker