Re: [gtkmm] Do the TextBuffer operations really modify the iterators?



On Tue, 2002-08-06 at 22:00, ERDI Gergo wrote:
> Lots of TextBuffer operations have signatures like this:
> 
>   void delete_text(iterator& start, iterator& end);
> 
> Do these really return something in start/end? It's very inconvenient that
> I can't just write
>     buffer->delete_text (buffer->begin (), buffer->end ());

> If the signature was
> 
>   void delete_text (const iterator &begin, const iterator &end);
> 
> it would work. So the real question is -- is this all deliberate (i.e.
> is begin/end modified to some meaningful value when the methods return)
> or just a typo?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]