Displaying 3 results from an estimated 3 matches for "_mycont".
2008 May 23
3
[LLVMdev] Iterator issue in BranchFolder::RemoveBlocksWithHash?
...he latest SVN head and I now get a debug assert in
BranchFolder::RemoveBlocksWithHash: "vector iterators incompatible". I'm
using Visual C++ 2005. I think this is the culprit code:
MergePotentials.erase(CurMPIter);
if (CurMPIter==B)
break;
The erase clears the _Mycont field (i.e. the iterator's container), while
the == expects CurMPIter and B to have the same container. I'm no STL guru
but it seems wrong to first erase an element and then try to compare it. I
traced it back to revision 50921 made on May 10'th. I rewrote it like
following, which I'...
2008 May 23
0
[LLVMdev] Iterator issue in BranchFolder::RemoveBlocksWithHash?
...ow get a debug
> assert in BranchFolder::RemoveBlocksWithHash: “vector iterators
> incompatible”. I’m using Visual C++ 2005. I think this is the
> culprit code:
>
> MergePotentials.erase(CurMPIter);
> if (CurMPIter==B)
> break;
>
> The erase clears the _Mycont field (i.e. the iterator’s container),
> while the == expects CurMPIter and B to have the same container. I’m
> no STL guru but it seems wrong to first erase an element and then
> try to compare it. I traced it back to revision 50921 made on May
> 10’th. I rewrote it like follow...
2008 May 27
2
[LLVMdev] Iterator issue in BranchFolder::RemoveBlocksWithHash?
...BranchFolder::RemoveBlocksWithHash: “vector iterators
>> incompatible”. I’m using Visual C++ 2005. I think this is the
>> culprit code:
>>
>> MergePotentials.erase(CurMPIter);
>> if (CurMPIter==B)
>> break;
>>
>> The erase clears the _Mycont field (i.e. the iterator’s container),
>> while the == expects CurMPIter and B to have the same container.
>> I’m no STL guru but it seems wrong to first erase an element and
>> then try to compare it. I traced it back to revision 50921 made on
>> May 10’th. I rewrot...