help with ustring::erase



Hello everyone
Can someone tell me how to erase the first character in a string?
...
Glib::ustring str("Hola");
str.erase(1,0); // erase one character at position zero
std::cout << str << std::endl; // ola
with this code I get a run time error, can anybody help?

Thanks
--
Happiness has many doors, and when one of them closes another opens, yet we spent so much time looking at the one that is shut that we don't  see the one that just  opened.

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