Problem using std::prev on ustring iterator
- From: "jeremy.harmon" <jeremy harmon zoho com>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Problem using std::prev on ustring iterator
- Date: Fri, 18 Mar 2016 13:57:37 -0400
Hello,
When I try to use std::prev on a ustring const_iterator nothing
happens, operator-- works fine.
Glib::ustring str = "test";
Glib::ustring::iterator iter = str.begin();
std::advance(iter);
printf("%c\n", *iter);
std::prev(iter);
printf("%c\n", *iter);
iter--;
printf("%c\n", *iter);
Output is
e
e
t
Any ideas why it doesn't work?
Thanks
Jeremy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]