On Tue, 28 Apr 2009 17:58:54 +0200
Daniel Elstner <[email protected]> wrote:
> I think it should just work to make the comparison operators
> non-templated functions that take const_iterator arguments only, and
> rely on the implicit conversion from iterator to const_iterator.

Yes, that would work.  But the iterator would have to be passed by
value (as Glib::ustring::const_iterator) rather than by reference (as
const Glib::ustring_Iterator<T>&), which may be why you did it the
second way.

Does passing by value have any efficiency implications?  If so, it would
be better to provide a templated version of the comparison operators
which is separately typed on both arguments.

Chris
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to