>>>>> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> But parPos is modified in the loop so cannot be const. Indeed. >> - Paragraph & par = text->getPar(pit); + Paragraph const & const >> par = text->getPar(pit); Abdelrazak> Same here. I think should be right: - Paragraph & par = text->getPar(pit); + Paragraph const & par = text->getPar(pit); >> (OK, I may have added too many consts, but they do help the >> compiler to generate better code, and it makes the intent of the >> code clearer) Abdelrazak> Hum are you sure about that? Msvc gives me this: Yes, it is the first thunk, which is indeed wrong (I read too fast, and it was actually the missing & that caught my eye at first). JMarc