|
Boost : |
From: Kostya Altukhov (kostya_at_[hidden])
Date: 2001-07-23 02:54:41
Hello,
I recently discovered even more surprising behavior of
lexical_cast (at least on VC++6sp4):
locale::global(locale("german"));
// ...
int i = 12345;
string s = lexical_cast<string>(i); // this will succeed
double d = lexical_cast<double>(s); // this will throw
I am kinda cautious about using lexical_cast after that,
especially when not in "C" locale...
Kostya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk