ParIterator::operator==
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sat Nov 7 23:28:47 UTC 2020
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
More information about the lyx-devel
mailing list