This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python] [patch] Pretty printers for std::*::{const_,}iterator


>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

Paul> Attached patch allows one to print std::*::iterator as easily as
Paul> the containers themselves.

Are there iterators where "print *i" does not work?

Paul> Unfortunately, this will do "the wrong thing" when iterator ==
Paul> container.end(), and I don't see any way to fix that :(

This is a pain, but I think it is the user's problem, at least in
cases where the end iterator is not "self-contained".

I'm ok with committing this.  If folks don't like it, we can turn it
off, or add a new parameter to control iterator printing.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]