Farid Zaripov wrote:
The list::insert() method do not satisfy strong exception safety
requirements.
The standard says:
[...]
1 Remarks: Does not affect the validity of iterators and references. If
an exception is thrown there are no effects.
===================
Actually this remark is valid only for inserting a single element.
Yup, that sure looks like a bug. Out of curiosity I tried gcc 4.1,
Sun C++ 5.8 with STLport 4.5, and IBM XLC++ 8.0 and only the last
one passes. The rest of them all fail the same assertion as ours.
Martin