This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] [patch] Pretty printers for std::*::{const_,}iterator
- From: Tom Tromey <tromey at redhat dot com>
- To: ppluzhnikov at google dot com (Paul Pluzhnikov)
- Cc: archer at sourceware dot org
- Date: Wed, 17 Dec 2008 13:49:13 -0700
- Subject: Re: [python] [patch] Pretty printers for std::*::{const_,}iterator
- References: <20081217011710.A2752147635@localhost>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "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