Boost logo

Boost :

Subject: Re: [boost] [locale] Formal review of Boost.Local library -- need reviews!
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2011-04-14 13:14:28

On 4/14/2011 7:42 AM, Artyom wrote:
>> Anyway, how does it play with Qt and wxwindows e.g.? I can't find about
>> this on the docs.
> I'm not too familiar with wxWdgets, but in all related to Qt I must
> admit that Qt does not plays well (if at all) with standard C++ library
> and STL.
> It has its own string (QString) its own character (QChar - two bytes) its
> own locale object (QLocale) and its own tools for localization.
> Of course nothing prevents from you using Boost.Locale with Qt however
> it would be bounded and limited by the integration of Qt with STL.
> For example you would likely want to use things like
> QString s=QString::fromStdString((format(translate("The time is {1,time}")) %
> time).str());

I've gotten around this issue, and similar issues with other libraries,
by having a "string_cast<>()" function. I now what I need the string to
be to pass off to whatever API but I don't have to care what kind of
string it is to begin with. I've found it quite convenient.

Boost list run by bdawes at, gregod at, cpdaniel at, john at