Le 09/07/2016 22:23, Richard Heck a écrit :
If I do: onePar.id() == otherPar.id() will that do what I obviously want it to do? I.e., work as a proxy for: onePar == otherPar ??
After reading the code, I think that: onePar.id() == otherPar.id() is equivalent to onePar == otherPar || (onePar.id() == -1 && otherPar.id() == -1) and the only way by which one will have par.id() == -1 is if par is initialized with the default constructor Paragraph(). You didn't ask, but onePar==otherPar is as cheap as onePar.id()==otherPar.id() because the first one is a pointer comparison. Why do you want to use one as a proxy for the other?