![]() |
Проблема с конвертацией string в Glib::ustring Здравствуйте!Есть переменная:std::string strValueФункция nodeText->set_content поддерживает const Glib::ustring.Фрагмент нерабочего кода:Glib::ustring ustrValue=(Glib::ustring)strValue;nodeTe xt->set_content(ustrValue); // тут ошибкаОшибка:passing const xmlpp::TextNode as this argument of void xmlpp::ContentNode::set_content(const Glib::ustring&) discards qualifiersКак конвертнуть string в const Glib::ustring? |
Часовой пояс GMT, время: 22:26. |
© www.otvetnemail.ru - Форум вопросов и ответов.