Hey Bastien,

I suppose that the ustring::compose method isn't overloaded to accept an
"int" type.

Of course, if you're including some conversion headers that define the likes
of atoi,itoa, then you've already got it.
ustring::compose( itoa( intValue ) );

The proper way to do this (in C++) would be:

*#include <sstream>*

*int i = 5;
std::ustring s;
std::stringstream out;
out << i;
s = out.str();*
that way your using the stringstream to convert the value.
Cheers, -Harry


On Thu, May 19, 2011 at 9:16 AM, Bastien Durel <[email protected]> wrote:

> Hello,
>
> I'm trying to port an application under win32, but I got a problem with
> ustring::compose.
> When I try to use an int as a parameter, compose throws an exception
> (ConvertError) saying it cannot convert from wchar_t to utf-8.
>
> is there a workaround ?
>
> Thanks,
>
> --
> Bastien Durel
>
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to