Units library and wstring
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? Thanks a lot, Dan
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
participants (2)
-
Macumber, Daniel
-
Steven Watanabe