|
Boost Users : |
From: Björn Karlsson (bjorn.karlsson_at_[hidden])
Date: 2002-09-16 08:42:46
> From: Mark Snelling [mailto:mark_at_[hidden]]
>
> Hi,
> Does the boost::lexical_cast library support wide character sets for
> example:
>
> #include <boost/lexical_cast.hpp>
>
> using namespace boost;
> using namespace std;
>
> void main ()
> {
> wstring wtext(L"1234");
> int val = lexical_cast<int>(wtext);
> }
>
Not the current version of lexical_cast - the implementation uses
stringstream to perform the conversion. A proposed change to lexical_cast
does handle wide characters correctly. I'm not sure about the status of that
proposal, though.
Bjorn Karlsson
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