stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <>
Subject Re: 23.deque.iterators.cpp
Date Tue, 07 Feb 2006 21:16:19 GMT
Liviu Nicoara wrote:
> I have attached the converted test in subject line.

Great, thanks! I made a few changes and committed it here:
> The explanatory pieces of text accompanying the assertions are in
> certain [few] cases kind of silly.

You mean the "Expected value..." stuff? Well, yes. That's probably
one of the reasons why the original test used plain assert() rather
than something more sophisticated. All that matters here is that
the test pass. A single failure is just as bad and the whole test
failing since it indicates an inconsistency in the container, and
in that case the actual values the iterator returns probably won't
make any sense anyway. I didn't see the test yesterday when you
asked what to do with the assertions otherwise I could have saved
you the time adding all this stuff. Sorry about that.

One more comment below:

>    // disabled for compilers that can't reliably replace the operators
>    // replace operators new and delete with versions that invalidate
>    // storage to detect problems due to deque iterators accessing
>    // uninitialized pointers

This doesn't do anything. We need to #include <rw_new.h> to get the
replacement operators.



View raw message