After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580773 - const and non-const Glib::ustring iterators cannot be compared
const and non-const Glib::ustring iterators cannot be compared
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: strings
2.20.x
Other All
: Normal normal
: ---
Assigned To: Daniel Elstner
gtkmm-forge
: 580507 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-04-29 16:19 UTC by Chris Vine
Modified: 2009-05-06 13:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Patch for ustring.h (2.26 KB, patch)
2009-04-29 16:20 UTC, Chris Vine
committed Details | Review

Description Chris Vine 2009-04-29 16:19:14 UTC
Please describe the problem:
comparison of const and non-const Glib::ustring iterators fails to compile because of template type mismatch of the iterator comparison operators

Patch allowing implicit type conversion to follow.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Chris Vine 2009-04-29 16:20:41 UTC
Created attachment 133577 [details] [review]
Patch for ustring.h
Comment 2 Jonathon Jongsma 2009-04-29 21:01:12 UTC
*** Bug 580507 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Elstner 2009-05-06 13:23:18 UTC
Pushed to master.