Re: Problem with Glib::ustring::insert



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]