|
Boost Users : |
From: Amin Kharchi (marcoh77_at_[hidden])
Date: 2006-11-09 17:16:09
Hello!
Is it possible to set a locale for the lexical_cast? It looks like that
it is only possible to convert english/us numbers to a string?
Example:
float a = boost::lexical_cast<float>("12,3");
This would be in english 12.3. But I get a bad_cast exception for german
numbers.
A locale would be very helpful.
Best regards
Amin Kharchi
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