N
Noah Roberts
A lot of my code converts numeric values to strings using
boost::lexical_cast, and thus, underneath, with <<. When I activate
locales, the thousands separator turns on.
We've deemed it not worthwhile to enable the various input elements to
use thousands separators and so I need to make sure those elements are
never initially filled with them, otherwise the user will never be able
to edit them.
How can I shut this off? I am using my own double type (wrapped up to
do funky rounding) and have some control over the stream function, but
I'd rather finding some format specifier or something to shut this
behavior off entirely. The reason being is that I'm also using
boost::format in this object's << function and it creates its own
streams that I can't override.
So what would be a good way to go about using locales, including numeric
formatting, but without thousands separators anywhere?
boost::lexical_cast, and thus, underneath, with <<. When I activate
locales, the thousands separator turns on.
We've deemed it not worthwhile to enable the various input elements to
use thousands separators and so I need to make sure those elements are
never initially filled with them, otherwise the user will never be able
to edit them.
How can I shut this off? I am using my own double type (wrapped up to
do funky rounding) and have some control over the stream function, but
I'd rather finding some format specifier or something to shut this
behavior off entirely. The reason being is that I'm also using
boost::format in this object's << function and it creates its own
streams that I can't override.
So what would be a good way to go about using locales, including numeric
formatting, but without thousands separators anywhere?