|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-03-01 09:36:20
Thorsten Ottosen <thorsten.ottosen_at_[hidden]> writes:
> David Abrahams wrote:
>> I'm seeing the following:
>>
>> 1. The test appears to do invoke undefined behavior, almost knowingly.
>> On line 103, it asks whether a singular range (so named, even) is
>> empty. This range is made up of singular iterators, the comparison
>> of which invokes undefined behavior. In a debug build on VC8 this
>> fires an assertion ("string iterators incompatible"). This problem
>> should be fixed.
>>
>> Every major standard library now has some iterator checking. We
>> should do debug-mode tests of our code with iterator checking on.
>>
>
> I've removed this line and similar from the test. 1.24 has been under
> way so long now, so I can't remember what's what anymore, but I think
> that the library allows a few operations even when the iterators are
> singular.
Which library?
> That behavior has changed in cvs head btw.
Which behavior?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk