Problem with Glib::ustring::insert



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());
}


-- 
Loïc Joly





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]