Boost logo

Boost Users :

Subject: Re: [Boost-users] Units library and wstring
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-26 09:42:06


AMDG

Macumber, Daniel wrote:
> Hello, my group has been simultaneously incorporating the boost units library into our code as well as converting all internal strings from std::string to std::wstring. I am having difficulty merging the changes, it seems that the boost units library has hard coded std::string as the return type for the methods which print units, powers, etc. Is there an easy way to template use of the units library on wchar_t instead of char? Are there any other suggestions on how to use the units library in a program which uses wstring for everything else?
>

The stream operators used to work with wchar_t, but it looks like
they've been broken. Please create a ticket at svn.boost.org.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net