16 Sep
2002
16 Sep
'02
1:42 p.m.
From: Mark Snelling [mailto:mark@bakedbeans.com]
Hi, Does the boost::lexical_cast library support wide character sets for example:
#include
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