Error: attempt to compare iterators from different sequences
Richard Kimberly Heck
rikiheck at gmail.com
Sun May 19 20:58:26 UTC 2024
On 5/19/24 15:15, Richard Kimberly Heck wrote:
> On 5/19/24 14:49, Jean-Marc Lasgouttes wrote:
>> Le 19/05/2024 à 20:20, Jean-Marc Lasgouttes a écrit :
>>> If you look at the error details, it seems to me that the addresses
>>> are different. But this is weird.
>>>
>>> Note that we can use count() instead of find(), which would solve
>>> the issue.
>>
>> What about that? It seems that the compiler was right after all. This
>> is where using assertions instead of full stdlib-debug is sub-optimal.
>
> Stupid mistake from me, dating to 2009. Amazing this has not caused
> actual problems.
>
> We might as well use find, since:
>
> count(const key_type& __x) const
> { return _M_t.find(__x) == _M_t.end() ? 0 : 1; }
Fixed in master and 2.4.x.
Riki
More information about the lyx-devel
mailing list