Re: Problem with Glib::ustring::insert
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Loïc Joly <loic joly reportive com>
- Cc: gtkmm-list gnome org
- Subject: Re: Problem with Glib::ustring::insert
- Date: Wed, 13 Dec 2006 11:25:56 +0100
Am Dienstag, den 12.12.2006, 15:28 +0100 schrieb Lo�Joly:
> I have a problem with Glib::ustring. The following code works with
> std::string, but not Glib::ustring.
>
> #include "glibmm/ustring.h"
>
> typedef Glib::ustring String;
> //typedef std::string String;
>
> int main()
> {
> String s = "Toto";
> String s2 = "Tutu";
> s.insert(s.begin(), s2.begin(), s2.end());
> }
Please define "doesn't work", i.e. what happens if you try?
The method does seem to be declared, at least:
template<class In> void insert(iterator p, In pbegin, In pend);
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]