Something wrong with ustring::const_iterator
- From: François Legendre <f legendre gmail com>
- To: gtkmm-list gnome org
- Subject: Something wrong with ustring::const_iterator
- Date: Sat, 25 Apr 2009 09:51:26 +0200
Hello,
I am unhappy with the following
#include <iostream>
#include <glibmm.h>
int main() {
Glib::ustring str("Hello") ;
for ( Glib::ustring::iterator it = str.begin() ; it != str.end() ; ++ it )
;
for ( Glib::ustring::const_iterator it = str.begin() ; it !=
str.end() ; ++ it )
;
return 0 ;
}
test.cpp: In function 'int main()':
test.cpp:9: erreur: no match for 'operator!=' in 'it != Glib::ustring::end()()'
/usr/include/glibmm-2.4/glibmm/timeval.h:189: note: candidats sont:
bool Glib::operator!=(const Glib::TimeVal&, const Glib::TimeVal&)
/usr/include/glibmm-2.4/glibmm/date.h:476: note: bool
Glib::operator!=(const Glib::Date&, const Glib::Date&)
/usr/include/glibmm-2.4/glibmm/quark.h:75: note: bool
Glib::operator!=(const Glib::QueryQuark&, const Glib::QueryQuark&)
/usr/include/glibmm-2.4/glibmm/ustring.h:1485: note:
bool Glib::operator!=(const char*, const Glib::ustring&)
/usr/include/glibmm-2.4/glibmm/ustring.h:1481: note:
bool Glib::operator!=(const Glib::ustring&, const char*)
/usr/include/glibmm-2.4/glibmm/ustring.h:1477: note:
bool Glib::operator!=(const Glib::ustring&, const Glib::ustring&)
make: *** [test] Erreur 1
Any ideas ?
--
François
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]