
22 Jan
2011
22 Jan
'11
5:07 p.m.
Hi Thomas, Thomas Heller wrote:
Michel, did you compile and run the code? It works like a charm.
Yes, I ran the code. The assertion failed on gcc 4.4, 4.5, 4.6. Could you please check that BOOST_ASSERT is not disabled? When I ran other similar codes, whether the assertion succeeds or not was very unstable (so I asked this question!), although the assertion in the attached code always failed. The behavior got changed before and after incrementing the iterator, and it seemed that compiler optimization also affected the results... Regards, Michel