>>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

Abdelrazak> Jean-Marc Lasgouttes a écrit :
>>>>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Did you try my suggested fix for output_latex? I cannot
Abdelrazak> verify it because I can't make mingw use safe_iterator. In
Abdelrazak> other word are you sure that it is not a problem of
Abdelrazak> output_latex instead?
>> I did not try it yet, but I do not see why it would assert with
>> your container and not with a vector (which has the same checks for
>> end).

Abdelrazak> Because std::vector puts data in a contiguous way in
Abdelrazak> memory and it1-it2 is valid even if it1 is past end()

The question is: how can it1 go past end without being noticed at all?
I am wary of applying patches that cure symptoms. I did not see in my
admittedly short look why the patch was good.

>> I do not remember whether I mentioned it already, but the
>> iterator::operator= entries seem strange to me. They seem to mix
>> freely iterator with const_iterator. Is that intentional?

Abdelrazak> Yes, those are just conversions form const_iterator to
Abdelrazak> iterator, which is allowed. Beside that, these are
Abdelrazak> necessary because lyx code mix freely iterator types.

Are we supposed to do that?

JMarc

Reply via email to