>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
Martin> This line of code originates from revision 9682, when Martin> Jean-Marc moved updateCounters from text2.C to buffer_funcs.C, Martin> and at the same time replaced pit_type arithmetic by Martin> pariterators. That's when "end" and its definition Martin> disappeared, and the changelog contains nothing on it... Martin> Jean-Marc, do you remember why you did this? This uses the following from dociterator.h /// is the iterator valid? operator const void*() const { return empty() ? 0 : this; } so I think it is perfectly valid (actually, in terms of implementation, the "!= end" version is less natural. Anyway I do not have a particular love for this form, I probably copied it from somewhere else. I think I saw Andre' using it. JMarc