receiving std::wstring
Scott Wheeler
wheeler at kde.org
Mon Jan 28 13:49:45 CET 2008
Daniel wrote:
> Hi all and thank you for a very good library.
>
> I have a small question that's probably pretty simple:
> I've been using taglib for a while and always been std::string in my
> projects. But now I want to retrieve std::wstring instead.
This isn't particularly clear from the documentation, but you can use
std::copy or the the std::wstring constructor that takes an input and
output iterator.
i.e.
TagLib::String foo = "foo";
std::wstring bar(foo.begin(), foo.end());
-Scott
More information about the taglib-devel
mailing list