Le 07/11/2020 à 15:55, Yuriy Skalko a écrit :
I'm not a C++ guru, but seems like nothing wrong with this code assuming Dociterator's operator== is right.

It can be further simplified to this:

bool operator==(ParConstIterator const & iter1, ParConstIterator const & iter2)
{
     DocIterator const & dit1 = iter1;
     DocIterator const & dit2 = iter2;
     return dit1 == dit2;
}

Isn't there a way with a xxx_cast too ? (maybe reinterpret_cast<> ?)

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to